DownloadCertificate

Prev Next

Available in Classic and VPC

Download the certificate and chain files as a ZIP file.

Request

This section describes the request format. The method and URI are as follows:

Method URI
POST /api/v2/certificate/exportCertificate/{certificateNo}

Request headers

For information about the request headers common to all Certificate Manager APIs, see Certificate Manager request headers.

Request path parameters

You can use the following path parameters with your request:

Field Type Required Description
certificateNo Integer Required Certificate number

Request body

You can include the following data in the body of your request:

Field Type Required Description
certificateNo Integer Optional Certificate number
Enter the same value as the request path parameter.
type String Optional Export format
  • PEM: Export in PEM format.
If omitted, defaults to PEM.

The request body itself cannot be omitted. Even if there are no values to specify, send an empty object ({}).

Request example

The request example is as follows:

curl --location --request POST 'https://certificatemanager.apigw.ntruss.com/api/v2/certificate/exportCertificate/12345' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--header 'Accept: application/zip' \
--data '{
    "certificateNo": 12345,
    "type": "PEM"
}'

Response

This section describes the response format.

Response status codes

For information about the response status codes common to all Certificate Manager APIs, see Certificate Manager response status codes.

Response example

Upon successful API processing, the certificate zip file (*.zip) is downloaded.