nerves_key v0.1.1 NervesKey View Source
This is a high level interface to provisioning and using the Nerves Key or any ATECC508A/608A that can be configured similarly.
Link to this section Summary
Functions
Configure an ATECC508A or ATECC608A as a Nerves Key
Create a signing key pair
Read the device certificate from the slot
Provision a NervesKey in one step
Read the signer certificate from the slot
Link to this section Functions
Configure an ATECC508A or ATECC608A as a Nerves Key.
Create a signing key pair
This returns a tuple that contains the certificate and the private key.
Link to this function
device_cert(transport)
View Source
device_cert(ATECC508A.Transport.t()) :: X509.Certificate.t()
Read the device certificate from the slot
Link to this function
provision(transport, info, signer_cert, signer_key)
View Source
provision( ATECC508A.Transport.t(), NervesKey.ProvisioningInfo.t(), X509.Certificate.t(), X509.PrivateKey.t() ) :: :ok
Provision a NervesKey in one step
This function does it all, but it requires the signer’s private key.
Link to this function
signer_cert(transport)
View Source
signer_cert(ATECC508A.Transport.t()) :: X509.Certificate.t()
Read the signer certificate from the slot