View Source mix nerves_key.signer (nerves_key v1.2.0)

Manages NervesKey signing keys

create

create

Create a new NervesKey signer certificate and private key pair. This creates a compressible X.509 certificate that can be stored in the ATECC508A's limited memory.

mix nerves_key.signer create NAME --years-valid <YEARS>

If --years-valid is unspecified, the new certificate will be valid for one year.

Link to this section Summary

Link to this section Functions

@spec create(
  String.t(),
  keyword()
) :: :ok

Callback implementation for Mix.Task.run/1.

@spec usage() :: no_return()