CLI: Certificates and Keys

You can use the crypto command to import keys and certificates.

crypto certificate [generate|import|setkey]

crypto key import

To import a certificate or key in PEM format:

crypto {certificate|key} import <name> pem data "<pem-data>"

  • import <name> - The name of the certificate or key.
  • pem data <pem-data> - The PEM data. Ensure to quote the PEM data.

To generate a self-signed certificate:

crypto certificate generate self-signed <cert-name> instance {<instance-name>|exinda-autogen}

To assign a key to a certificate:

crypto certificate setkey <certificate_name> {key|test}