Configures an SSL certificate for a specified domain name.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ServerCertificate | string | Yes | The content of the certificate. The certificate must match the certificate signing request (CSR) created by calling the CreateDcdnCertificateSigningRequest operation. Make sure that the certificate is in PEM format and its content is Base64-encoded and then encoded by encodeURIComponent. | test |
DomainName | string | Yes | The domain name that is secured by the certificate. The domain name uses HTTPS acceleration. | example.com |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C9"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | Certificate.MissingParameter | You must specify the Certificate parameter. | - |
400 | Certificate.EncodeError | An error occurred while encoding the certificate. | Failed to encode the certificate. |
400 | Certificate.DecodeError | An error occurred while decoding the certificate. | Failed to decode the certificate. |
400 | Certificate.FormatError | The format of the certificate is invalid. | The specified certificate format is invalid. |
400 | Certificate.MissMatch | The certificate does not match the domain. | The certificate and domain name do not match. |
400 | Certificate.NoPrivateKey | The private key of the certificate does not exist. | The specified private key does not exist. |
500 | Internal.ForbidError | You cannot modify the configurations when some features of the domain are in a canary deployment. | The domain name cannot be changed because a feature is in canary release. |
500 | Internal.ConfigError | An error occurred while configuring the certificate. | Failed to call the configuration operation. |
For a list of error codes, visit the Service error codes.