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

Create a device certificate without a NervesKey

create

create

This simulates certification creation if you don't have a NervesKey.

While this doesn't make any sense if you're using NervesKeys, it can be handy in testing device certs that look like they're from NervesKeys.

mix nerves_key.device create NAME --signer-cert <CERT> --signer-key <KEY>

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()