Add an SSL certificate to deliver content over HTTPS
An SSL certificate associates a domain with a public key and allows clients to verify the server's identity. HTTPS protects sensitive data in transit, including financial information. The SSL certificate overview explains how certificates establish encrypted connections.
To deliver content over HTTPS through Orange's CDN, attach an SSL certificate to a CDN resource that uses a custom domain.
📝
Only one certificate can be attached per CDN resource.
SSL certificate types in CDB
Two SSL certificate types are available:
Custom SSL certificate. A third-party certificate authority issues the certificate for the custom domain. Upload the certificate in the Customer Portal and attach it to the CDN resource.
Free Let's Encrypt certificate. Select a free Let's Encrypt certificate for the custom domain. CDB issues and attaches it automatically.
SSL configuration
Configure HTTPS on a CDN resource or upload a custom certificate for later use.
CDN resource HTTPS
Attach a certificate from the CDN resource settings:
Select Free Let's Encrypt certificate or Custom SSL certificate. For a custom certificate, select the uploaded certificate from the list of available certificates.
4
Apply the configuration
Click Save changes.
For custom uploads, the custom certificate procedure covers entering the certificate name, certificate chain, and private key, configuring the certificate-authority option, and submitting the form.
Attach an existing SSL certificate to a CDN resource so viewers can request the content over HTTPS, while Let's Encrypt issuance stays in the Let's Encrypt article.
A resource update sets sslEnabled to true and sslData to the certificate id, while a request that sets sslEnabled to true without sslData returns HTTP 400 with the message Invalid certificate.
Parameter
Required
Description
sslEnabled
No
Optional in the API. Set to true to enable HTTPS
sslData
No
Optional in the API. Required when sslEnabled is true; use the certificate id from the list request
Attach an existing SSL certificate to a CDN resource with the Terraform provider v2. The resource uses a custom domain, while Let's Encrypt issuance stays in the Let's Encrypt article.
📝
Only one certificate can be attached per CDN resource.
ℹ️
An uploaded certificate is required, because the data source reads it when Terraform plans.
Attach the certificate
Select the certificate by name from the account list and set ssl_enabled and ssl_data on the CDN resource, because creating the resource with ssl_enabled set to true and no ssl_data returns HTTP 400 with the message Invalid certificate.
Set ssl_enabled to false and remove ssl_data, then run terraform apply, so the API clears the certificate id, while Terraform state can still show the previous id until the next plan, which records ssl_data as null and does not attach the certificate again.
Wait at least 15 minutes after the certificate is attached, then request the custom domain over HTTPS, so a successful connection confirms that the CDN delivers the content.