To export a certificate from a specified key pair, the GET /environments/{environmentId}/key/{keyId} operation downloads a certificate file in the specified file format. This operation requires an Accept header in the request that specifies application/x-x509-ca-cert.

The sample shows an export operation to download a certificate in X509 PEM format.

The exported certificate file has a .crt file extension.