跳到主要内容

Create a Certificate for a Domain

Create a certificate for a delivery domain.

Request

Request-Line

POST /lls/v1.0/certificate

Request Parameters

Body Parameters

ParameterTypeRequiredDescription
domainStringMandatorydelivery domain name.
certificateStringMandatoryCertificate or whole certificate chain.
certificateKeyStringMandatoryPrivate key of certificate.

Response

Response Body

Status Codes, Error Codes and Error Messages

Status CodeError CodeError Message
400LLS.Domain.InvalidDomain name invalid.

Examples

Configure a Certificate for a delivery domain

Request Body

{
"domain": "live.example.com",
"certificate": "-----BEGIN CERTIFICATE-----\n{Leaf Certificate}}\n-----END CERTIFICATE-----",
"certificateKey": ""
}

Configure a Certificate with chain for a delivery domain

Request Body

{
"domain": "live2.example.com",
"certificate": "-----BEGIN CERTIFICATE-----\n{Leaf Certificate}}\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\n{Intermediate Certificate}}\n-----END CERTIFICATE-----\n----BEGIN CERTIFICATE-----",
"certificateKey": "-----BEGIN PRIVATE KEY-----\n{Certificate Private Key}\n-----END PRIVATE KEY-----"
}

Best Practices

Rate Limiting

Rate Limits

Rate limiting is posed upon the API, please kindly check your API calls to ensure complying with the rate limit below:

  • 100 requests per minute
  • 1000 requests per hour