mix aker.certify (Aker v0.2.0)

Copy Markdown View Source

Certify a working key with the root key, offline, so a licensing server can sign licences without ever holding the root key.

mix aker.certify --root-key ../keys/root.pem \
  --working-key ../keys/working-2026-11.pem --key-id w-2026-11

Options:

  • --root-key (required): the root key's PEM.
  • --working-key (required): the working key's PEM, the key the server will sign with.
  • --key-id (required): 1 to 64 bytes; every licence the working key signs names it.
  • --days (default 470): how long the certificate lasts, 1 to 600. An install refuses a licence once its certificate ends, so the certificate must outlast every term the server signs with it.
  • --not-before (default now): when the certificate starts, as ISO 8601, such as 2026-11-07T00:00:00Z.

Keep both keys outside the checkout: the task refuses a key inside the folder it runs in. It prints the key id, the certificate on one line (the value the server keeps, which Aker.Issuer.decode_certificate/1 reads), and the root key's public half. It never prints the working key.