Skip to content

azion_create_csr

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

azion create csr

Creates a Certificate Signing Request (CSR)

Synopsis

Creates a Certificate Signing Request (CSR) to be submitted to a Certificate Authority. The generated CSR content is returned upon creation

azion create csr [flags]

Examples

$ azion create csr --name "My CSR" --common-name "example.com" --country "US" --state "California" --locality "San Francisco" --organization "Example Corp" --organization-unity "IT" --email "admin@example.com"
$ azion create csr --name "My CSR" --common-name "example.com" --country "US" --state "California" --locality "San Francisco" --organization "Example Corp" --organization-unity "IT" --email "admin@example.com" --alternative-names "www.example.com,api.example.com" --key-algorithm rsa_2048
$ azion create csr --file "create.json"

Options

      --alternative-names string    Comma-separated list of Subject Alternative Names (SANs)
      --certificate-type string     Certificate type (e.g. edge_certificate, trusted_ca_certificate)
      --common-name string          Common Name (CN) of the certificate subject
      --country string              Country code of the certificate subject (e.g. US, BR)
      --email string                Contact email address of the certificate subject
      --file string                 Path to a JSON file containing the attributes of the Certificate Signing Request being created; you can use - for reading from stdin
  -h, --help                        Displays more information about the create csr command
      --key-algorithm string        Key algorithm used to generate the certificate (rsa_2048, rsa_4096, or ecc_384)
      --locality string             City or locality name of the certificate subject
      --name string                 Name that identifies the Certificate Signing Request
      --organization string         Organization name of the certificate subject
      --organization-unity string   Organizational unit name of the certificate subject
      --state string                State or province name of the certificate subject

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