: Export Certificates and Keys
Focus
Focus

Export Certificates and Keys

Table of Contents

Export Certificates and Keys

Use the following procedure to export certificates and keys.
  1. To export certificates and keys, specify query parameterscertificate-name,format, andpassphrase:
    https://<firewall>/api/?key=apikey&type=export&category=<certificate> &certificate-name=<certificate_name> &passphrase=<passphrase> &format=<pkcs12><pem><pkcs10> &include-key=<yes><no>&vsys=<vsys> <omit this parameter to import it into a shared location>
    • certificate-name—name of the certificate object on the firewall
    • passphrase—required when including the certificate key
    • format—certificate format:pkcs12,pem, orpkcs10
    • include-key—yes or no parameter to include or exclude the key
    • vsys—virtual system where the certificate object is used. Ignore this parameter if the certificate is a shared object.
    You can use the example above to export a certificate signing request (CSR). If you do so, then specify the following two parameters as shown:
    • formatpkcs10
    • include-keyno
  2. Confirm that the XML response includes the certificate:
    -----BEGIN CERTIFICATE----- MIIDXTCCAkWgAwIBAgIJAJC1HiIAZAiIMA0GCSqGSIb3Df BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVx aWRnaXRzIFB0eSBMdGQwHhcNMTExMjMxMDg1OTQ0WhcNMT <!-- TRUNCATED --> -----END CERTIFICATE-----