createExternalCertificate
    • PDF

    createExternalCertificate

    • PDF

    Article summary

    Available in Classic and VPC

    Add an SSL certificate issued by a recognized certificate authority outside of NAVER Cloud Platform.

    Request

    The following describes the request format for the endpoint. The request format is as follows:

    MethodURI
    POST/certificate/withExternal

    Request headers

    The following describes the headers.

    FieldRequiredDescription
    Content-TypeRequiredRequest data format
    • application/json

    For headers common to all Certificate Manager APIs, see Common Certificate Manager headers.

    Request body

    The following describes the request body.

    FieldTypeRequiredDescription
    certificateNameStringRequiredCertificate name
    • 3 to 30 characters, including English letters, numbers, and the special character "-"
    • Can't be duplicated
    privateKeyStringRequiredPEM-encoded certificate private key
    publicKeyCertificateStringRequiredPEM-encoded certificate body
    • Can't be duplicated
    certificateChainStringRequiredPEM-encoded certificate chain

    Request example

    The following is a sample request.

    curl --location --request POST 'https://certificatemanager.apigw.ntruss.com/api/v1/certificate/withExternal' \
    --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/json' \
    --data '{
        "certificateName": {Certificate Name},
        "privateKey": {Private Key},
        "publicKeyCertificate": {Public Key Certificate},
        "certificateChain": {Certificate Chain}
    }'
    

    Response

    The following describes the response format.

    Response body

    The following describes the response body.

    FieldTypeRequiredDescription
    returnCodeString-Response code
    returnMessageString-Response message
    totalRowsInteger-Number of SSL certificates (sslCertificateList)
    sslCertificateListArray-Certificate list

    sslCertificateList

    The following describes sslCertificateList.

    FieldTypeRequiredDescription
    certificateNoInteger-Certificate number
    certificateTypeString-Certificate type
    certificateNameString-Certificate name
    memberNoString-User's NAVER Cloud Platform member ID
    dnInfoString-Certificate distinguished name (DN) information
    domainAddressString-Representative domain address of the certificate
    subDomainAddressString-Sub domain address of the certificate
    regDateDate-Certificate registration date and time
    validStartDateDate-Certification validity start date and time
    validEndDateDate-Certification validity end date and time
    revokeDateDate-Certificate revocation date and time
  • Display only if the certificate is revoked
  • statusCodeString-Certificate status code
    statusNameString-Certificate status
    externalYnString-External certificate status
    domainCodeString-Domain code
    caInfoString-Certificate authority (CA) information
    certSerialNumberString-Certificate serial number
    certPublicKeyInfoString-Public key information
    certSignAlgorithmNameString-Signature algorithm
    usedInstanceNoListString-List of instances using the certificate
    updateDateDate-Latest change date and time

    Response status codes

    For response status codes common to all Certificate Manager APIs, see Common Certificate Manager response status codes.

    Response example

    The following is a sample example.

    {
        "returnCode": "0",
        "returnMessage": "Success",
        "totalRows": 1,
        "sslCertificateList": [
            {
                "certificateNo": 30728,
                "certificateType": "EXT",
                "certificateName": "zero-certi",
                "memberNo": "*******",
                "dnInfo": "CN=************.***.kr",
                "domainAddress": "************.***.kr",
                "subDomainAddress": "",
                "regDate": "2024-07-30 11:33:33",
                "validStartDate": "2024-07-30 09:00:00",
                "validEndDate": "2024-10-29 08:59:59",
                "statusCode": "1",
                "statusName": "Normal",
                "externalYn": "Y",
                "domainCode": "PUB",
                "caInfo": "ZeroSSL RSA Domain Secure Site CA",
                "certSerialNumber": "92cf99ce**************a6205a5018",
                "certPublicKeyInfo": "Sun RSA public key, 2048 bits",
                "certSignAlgorithmName": "SHA384withRSA",
                "updateDate": "2024-07-30 11:33:33"
            }
        ]
    }
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.