Configure 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, check API calls to comply with the rate limit below:
- 100 requests per minute
- 1000 requests per hour