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
Parameter | Type | Required | Description |
---|---|---|---|
domain | String | Mandatory | delivery domain name. |
certificate | String | Mandatory | Certificate or whole certificate chain. |
certificateKey | String | Mandatory | Private key of certificate. |
Response
Response Body
Status Codes, Error Codes and Error Messages
Status Code | Error Code | Error Message |
---|---|---|
400 | LLS.Domain.Invalid | Domain 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