Alibaba Cloud CDN accelerates content delivery. Adding an SSL/TLS certificate enables encrypted HTTPS delivery. This guide covers certificate upload, HTTPS configuration, and optimization.
1. Preparation
1. Obtain an SSL/TLS certificate
Before deployment, prepare:
- A certificate issued through CertOne, Alibaba Cloud, or another provider
- A certificate file (.crt or .pem)
- A private key file (.key)
- An intermediate certificate chain file, when required
2. Prepare Alibaba Cloud CDN
- Activate the Alibaba Cloud CDN service
- Add your CDN domain
- Complete the required domain filing if using mainland China nodes
2. Upload the certificate
1. Open the CDN console
- Sign in to the Alibaba Cloud console
- Open the CDN service
- Select Domain management
2. Configure HTTPS
- Locate the target domain
- Click Manage
- Open HTTPS configuration
- Click Modify configuration
3. Upload a certificate
Option 1: Bring your own certificate
- Select Custom certificate
- Upload the certificate (.crt or .pem)
- Upload the private key (.key)
- Enter a certificate name
- Click OK
Option 2: Use an Alibaba Cloud certificate
- Select Alibaba Cloud certificate
- Select an issued certificate
- Click OK
3. HTTPS configuration
1. Enable HTTPS
- Open the HTTPS configuration page
- Enable HTTPS secure acceleration
- Select the uploaded certificate
- Click OK
2. Redirect HTTP requests to HTTPS
- Open the HTTPS configuration page
- Enable Force HTTP to HTTPS
- Choose the redirect type (301 or 302)
- Click OK
3. TLS versions
- Open the HTTPS configuration page
- Select TLS versions; use TLS 1.2 and 1.3
- Click OK
4. Automate deployment with CertOne
1. Create a deployment node
- Sign in to CertOne
- Open Deployment nodes
- Click Create deployment node
- Select Alibaba Cloud CDN
2. Configure API access
- Create an Alibaba Cloud AccessKey
- Grant the key the required CDN management permissions
- Configure the Alibaba Cloud credentials in CertOne
- Test the connection
3. Associate a certificate
- Select the certificate to deploy
- Select the deployment node
- Enable automatic deployment
- Renewed certificates will be deployed to the CDN automatically
5. Optimize the configuration
1. Caching
Static resources:
- Set appropriate cache lifetimes for static resources
- Improve HTTPS delivery speed
HTTPS caching:
- Enable caching for HTTPS content
- Reduce requests to the origin
2. Compression
Enable compression:
- Enable Gzip or Brotli
- Reduce transferred data
- Improve HTTPS delivery speed
3. HTTP/2
Enable HTTP/2:
- Alibaba Cloud CDN supports HTTP/2
- Improve HTTPS performance
- No additional configuration is needed where enabled by default
Verify the configuration
1. Check HTTPS access
- Visit https://your-domain.com
- Inspect the browser's connection security indicator
- Confirm the certificate details
2. Check redirects
- Visit http://your-domain.com
- Confirm that it redirects to HTTPS
- Check the response status (301 for a permanent redirect)
3. Use a TLS testing tool
- Visit https://www.ssllabs.com/ssltest/
- Enter your domain
- Review the TLS configuration grade
7. Common issues
1. Certificate upload fails
Possible causes:
- Incorrect certificate format
- Mismatched private key
- Incomplete certificate chain
Resolution:
- Check the certificate format
- Confirm that the certificate matches the private key
- Use the complete certificate chain
2. HTTPS is inaccessible
Possible causes:
- The certificate was not uploaded correctly
- HTTPS is disabled
- DNS resolution problems
Resolution:
- Check the certificate configuration
- Confirm HTTPS is enabled
- Check DNS resolution
3. Certificate renewal
Manual renewal:
- Obtain a new certificate
- Upload the replacement certificate to the CDN
- Update the HTTPS configuration
Automatic renewal:
- Use CertOne automatic deployment
- Deploy renewed certificates to the CDN automatically
Best practices
1. Certificate management
- ✅ Use CertOne automatic deployment
- ✅ Set certificate expiration reminders
- ✅ Check certificate status regularly
2. Performance optimization
- ✅ Enable HTTP/2
- ✅ Configure caching policies
- ✅ Enable compression
3. Security configuration
- ✅ Use secure TLS protocols
- ✅ Enable HTTP-to-HTTPS redirects
- ✅ Configure security response headers
Conclusion
Deploying a certificate to Alibaba Cloud CDN enables encrypted, accelerated content delivery. Follow the upload and configuration steps to enable HTTPS.
Key points:
- ✅ Upload the certificate to the CDN
- ✅ Enable HTTPS secure acceleration
- ✅ Configure HTTP-to-HTTPS redirects
- ✅ Use CertOne automatic deployment
CertOne combines certificate issuance with automatic deployment to Alibaba Cloud CDN, simplifying certificate management.