Configure HTTPS certificates in batches
CDN supports the HTTPS secure acceleration service, which encrypts requests transmitted between clients and CDN nodes. HTTPS certificates purchased in Certificate Management Service (formerly SSL Certificates Service) can be deployed to the CDN platform in batches to enable HTTPS secure acceleration.
Limits
Only certificates purchased from Alibaba Cloud Certificate Management Service (formerly SSL Certificates Service) can be deployed to the CDN platform in batches. Certificates issued by third-party providers do not support batch deployment.
Certificates issued by third-party providers can only be configured one by one. For more information, see Configure an HTTPS certificate.
Configure or update an HTTPS certificate
HTTPS is a value-added service. After HTTPS is enabled, you are charged based on the number of HTTPS requests. This fee is billed separately based on the pay-as-you-go billing method and is not included in the CDN data transfer plan. For more information about HTTPS billing, see Billing of HTTPS requests for static content.
-
Log on to the CDN console.
-
In the left navigation pane, click HTTPS Center.
On the Certificate Center page, click Add Certificate.
Select a certificate.
In the Add Certificate panel, configure the certificate parameters.
Parameter
Description
Certificate Source
Only certificates obtained from Certificate Management Service are supported. That is, certificates purchased from Alibaba Cloud Certificate Management Service (formerly SSL Certificates Service).
Certificate Name
Select the certificate that you purchased.
Certificate (Public Key)
The PEM-encoded content of the certificate public key. For certificates obtained from Certificate Management Service, the content is automatically retrieved by the system.
Private Key
The PEM-encoded content of the certificate private key. For certificates obtained from Certificate Management Service, the content is automatically retrieved by the system.
Click Next.
Select the domain names that match the certificate.
ImportantIf a selected domain name already has a certificate deployed, this operation overwrites the existing certificate.
Certificates from Certificate Management Service can be deployed and updated in batches based on the association between certificates and domain names.
In the Associated Domain Names step, you can filter domain names by All Domain Names, Only Domain Names Without Certificates, or Only Domain Names With Certificates, and select Exact Match or Fuzzy Match as the matching rule. Select the target domain names from the Domain Name List on the left, click the right arrow to add them to the Selected list on the right, and then click OK to associate the certificate with the domain names.
Click OK to deploy and update the certificate.
(Optional) To enable end-to-end data transfer over HTTPS, configure CDN nodes to use HTTPS for origin fetch to the origin server. The origin server must support HTTPS. For more information, see Configure the origin protocol policy.
Verify the HTTPS configuration
Browser verification: Use a browser to access https://<your accelerated domain name>. If a lock icon appears in the address bar and clicking it displays the correct certificate information, the configuration is successful. Command-line verification: Run curl -I https://<your accelerated domain name>. If a 200 status code is returned, the HTTPS service is available.
View configured HTTPS certificate information
Log on to the Alibaba Cloud CDN console, choose HTTPS Center in the left-side navigation pane, and click the domain name for which a certificate is configured to view the HTTPS certificate information of the domain name.
Because private key information is sensitive, the console does not allow you to view the private key. Keep your certificate information properly stored. For other certificate-related FAQs, see More certificate FAQs.
Related API operations
API | Description |
Configures a CSR file. | |
Queries certificate information for a specified accelerated domain name. | |
Enables or disables the certificate feature for a domain name and updates the certificate information. | |
Configures an HTTPS certificate for a specified domain name. | |
Queries accelerated domain names based on certificate information. | |
Queries the details of a CDN certificate. | |
Queries a list of certificates. | |
Queries the information about a specified certificate. | |
Queries all certificate information for a user account. | |
Queries the number of domain names whose certificates have expired. | |
Configures an SM certificate. | |
Queries the list of SM certificates. | |
Queries the details of an SM certificate. |