Skip to content

azion_create_digital certificate

GitHub Action edited this page Jun 16, 2026 · 3 revisions

azion create digital-certificate

Creates a Digital Certificate

Synopsis

Creates a Digital Certificate by either uploading your own PEM-encoded certificate and private key, or by requesting a managed certificate (e.g. Let's Encrypt) issued by a Certificate Authority

azion create digital-certificate [flags]

Examples

$ azion create digital-certificate --name "My Certificate" --certificate "./cert.pem" --private-key "./key.pem"
$ azion create digital-certificate --name "azion.com" --authority lets_encrypt --challenge dns --common-name "azion.com"
$ azion create digital-certificate --file "create.json"

Options

      --alternative-names string   Comma-separated list of Subject Alternative Names (SANs) for the requested certificate
      --authority string           Certificate Authority that will issue the certificate (e.g. lets_encrypt). When provided, the certificate is requested instead of uploaded
      --certificate string         Path to the file containing the certificate (PEM format)
      --certificate-type string    Digital Certificate's type (e.g. edge_certificate, trusted_ca_certificate)
      --challenge string           Method used to solve the ACME challenge (dns or http)
      --common-name string         Common Name (CN) of the certificate being requested
      --file string                Path to a JSON file containing the attributes of the Digital Certificate being created; you can use - for reading from stdin
  -h, --help                       Displays more information about the create digital-certificate command
      --key-algorithm string       Key algorithm used to generate the certificate (rsa_2048, rsa_4096, or ecc_384)
      --name string                Digital Certificate's name
      --private-key string         Path to the file containing the private key (PEM format)

Options inherited from parent commands

  -c, --config string      Sets the Azion configuration folder for the current command only, without changing persistent settings.
  -d, --debug              Displays log at a debug level
      --format string      Changes the output format passing the json value to the flag
  -l, --log-level string   Set the logging level, "debug", "info", or "error". (default "info")
      --no-color           Changes the output format passing the json value to the flag
      --out string         Exports the output to the given <file_path/file_name.ext>
  -s, --silent             Silences log completely; mostly used for automation purposes
      --timeout int        Defines how much time in seconds the CLI will wait before timing out from the HTTP connection (default 50)
  -t, --token string       Saves a given Personal Token locally to authorize CLI commands
  -y, --yes                Answers all yes/no interactions automatically with yes

SEE ALSO

Auto generated by spf13/cobra on 16-Jun-2026

Clone this wiki locally