ATECC508A.Certificate.new_device

You're seeing just the function new_device, go back to ATECC508A.Certificate module for more information.
Link to this function

new_device(atecc508a_public_key, atecc508a_sn, manufacturer_sn, signer, signer_key)

View Source

Specs

new_device(
  :public_key.ec_public_key(),
  ATECC508A.serial_number(),
  String.t(),
  X509.Certificate.t(),
  :public_key.ec_private_key()
) :: X509.Certificate.t()

Create a new device certificate.

The created certificate is compatible with ATECC508A certificate compression.

Parameters:

  • atecc508a_public_key - the public key to be signed (from ATECC508A)
  • atecc508a_sn - the ATECC508a's serial number - used to compute the certificate's serial number
  • manufacturer_sn - the manufacturer's desired serial number - used as the common name
  • signer - the signer's certificate
  • signer_key - the signer's private key