Issue Let's Encrypt certificate
Issue free Let's Encrypt certificate for the CDN resource.
Before issuing the certificate, you need to:
- Delegate your domain to our name servers, if the CDN resource accelerates the entire site.
- Specify all CNAMEs in the personal zone, if the CDN resource accelerates only static resources.
- Create a Let's Encrypt certificate as described here.
Let's Encrypt certificates will be issued for all CNAMEs of the CDN resource. Certificate issuing can take up to fifteen minutes.
By default, we issue an ECDSA Let's Encrypt certificate. If you need a RSA certificate, you can enable the "use_rsa_le_cert" option for your CDN resource.
Notes:
- When a certificate is issued, it will be applied to the CDN resource and HTTPS will be enabled automatically.
- Let's Encrypt certificate will be automatically renewed before the expiration date.
- Let's Encrypt certificate will be automatically updated and applied when deleting or adding additional CNAMEs of the CDN resource.
Challenge types:
By default, we issue Let's Encrypt certificates using the HTTP-01 challenge.
If you prefer to use DNS-01 challenge, you can enable the "use_dns01_le_challenge" option for your CDN resource. Read more about challenge types.
To issue Let's Encrypt certificate using the DNS-01 challenge the steps below should be done before request issuance:
- The DNS service is activated.
- use_dns01_le_challenge option is enabled.
- _acme-challenge subdomain or resource's domain is delegated to our nameservers. To find out the nameservers for your account, use the GET request /dns/v2/platform/info. Use retrieved name_server_1 and name_server_2 values from the settings object to create NS records.
Path parameters
CDN resource ID.
Request body
Example request
{
"sslData": 192,
"sslEnabled": true
}Response
Successful.