Export Public Key (X509 PEM)
GET {{apiPath}}/environments/{{envID}}/keys/{{keyID}}
To export a certificate from a specified key pair, the GET /environments/{{envID}}/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.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
"-----BEGIN CERTIFICATE-----\nMIICwDCCAaigAwIBAgIGAWrbgUcP....\n-----END CERTIFICATE-----\n"