Skip to main content

bind_hardware

Function bind_hardware 

Source
pub async fn bind_hardware(
    endpoint: &str,
    api_key: &str,
    tpm: &dyn HardwareIdentity,
    device_id: &str,
    ek_chain: &[Vec<u8>],
) -> PhyTraceResult<Value>
Expand description

Prove to PhyCloud that the device’s keys live in its TPM: send the EK certificate (and any intermediate CA certificates, DER) and the keys’ public areas, answer PhyCloud’s credential challenge with TPM2_ActivateCredential, and certify the signing key with the attestation key. Returns the device, whose hardware block carries the device certificate if PhyCloud has a device CA. The attestation key must already be registered (register_attestation_key).