authelia/docs/content/en/reference/cli/authelia-scripts/authelia-scripts_certificates_generate.md
James Elliott fcac438637
feat(commands): enhance crypto generation capabilities (#2842)
This expands the functionality of the certificates and rsa commands and merges them into one command called cypto which can either use the cert or pair subcommands to generate certificates or key-pairs respectively. The rsa, ecdsa, and ed25519 subcommands exist for both the cert and pair commands. A new --ca-path argument for the cert subcommand allows Authelia to sign other certs with CA certs.

Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
2022-06-27 18:27:57 +10:00

1.6 KiB

title description lead date lastmod draft images menu weight toc
authelia-scripts certificates generate Reference for the authelia-scripts certificates generate command. 2022-06-15T17:51:47+10:00 2022-06-03T11:17:29+10:00 false
reference
parent
cli-authelia-scripts
330 true

authelia-scripts certificates generate

Generate a self-signed certificate

authelia-scripts certificates generate [flags]

Options

      --ca                   Whether this cert should be its own Certificate Authority
      --dir string           Target directory where the certificate and keys will be stored
      --duration duration    Duration that certificate is valid for (default 8760h0m0s)
      --ecdsa-curve string   ECDSA curve to use to generate a key. Valid values are P224, P256 (recommended), P384, P521
      --ed25519              Generate an Ed25519 key
  -h, --help                 help for generate
      --rsa-bits int         Size of RSA key to generate. Ignored if --ecdsa-curve is set (default 2048)
      --start-date string    Creation date formatted as Jan 1 15:04:05 2011

Options inherited from parent commands

      --buildkite          Set CI flag for Buildkite
      --host strings       Comma-separated hostnames and IPs to generate a certificate for
      --log-level string   Set the log level for the command (default "info")

SEE ALSO

Auto generated by spf13/cobra on 3-Jun-2022