Skip to main content
Deployment

Deploy an SSL Certificate to Tencent Cloud CDN

Upload an SSL certificate, enable HTTPS, and configure delivery settings on Tencent Cloud CDN.

Tencent Cloud CDN distributes content across edge locations. Adding an SSL certificate enables HTTPS between visitors and the CDN. This guide covers certificate upload, HTTPS settings, and related configuration.

1. Preparation​

1. Obtain an SSL/TLS certificate​

Before deployment, prepare:

  • An SSL certificate issued through CertOne, Tencent Cloud, or another provider
  • A certificate file (.crt or .pem)
  • A private key file (.key)
  • An intermediate certificate chain file, when required

2. Prepare Tencent Cloud CDN​

  • Tencent Cloud CDN is enabled for your account.
  • Add your CDN domain
  • Complete the required domain filing if using mainland China nodes

2. Upload the certificate​

1. Open the CDN console​

  1. Sign in to the Tencent Cloud console.
  2. Open the CDN service
  3. Select Domain management

2. Configure HTTPS​

  1. Locate the target domain
  2. Click Manage
  3. Open HTTPS configuration
  4. Click "Configure".

3. Upload a certificate​

Option 1: Bring your own certificate

  1. Select Custom certificate
  2. Upload the certificate (.crt or .pem)
  3. Upload the private key (.key)
  4. Enter a certificate name
  5. Click OK

Option 2: Use a Tencent Cloud certificate

  1. Select the Tencent Cloud certificate option.
  2. Select an issued certificate
  3. Click OK

3. HTTPS configuration​

1. Enable HTTPS​

  1. Open the HTTPS configuration page
  2. Enable HTTPS secure acceleration
  3. Select the uploaded certificate
  4. Click OK

2. Redirect HTTP requests to HTTPS​

  1. Open the HTTPS configuration page
  2. Enable Force HTTP to HTTPS
  3. Choose the redirect type (301 or 302)
  4. Click OK

3. TLS versions​

  1. Open the HTTPS configuration page
  2. Select TLS versions; use TLS 1.2 and 1.3
  3. Click OK

4. Automate deployment with CertOne​

1. Create a deployment node​

  1. Sign in to CertOne
  2. Open Deployment nodes
  3. Click Create deployment node
  4. Select "Tencent Cloud CDN".

2. Configure API access​

  1. Create an API key in Tencent Cloud.
  2. Ensure that the key has the required CDN permissions.
  3. Add the Tencent Cloud authorization in CertOne.
  4. Test the connection

3. Associate a certificate​

  1. Select the certificate to deploy
  2. Select the deployment node
  3. Enable automatic deployment
  4. 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:

  • Enable HTTP/2 in the CDN configuration where available.
  • Improve HTTPS performance
  • No additional configuration is needed where enabled by default

Verify the configuration​

1. Check HTTPS access​

  1. Visit https://your-domain.com
  2. Inspect the browser's connection security indicator
  3. Confirm the certificate details

2. Check redirects​

  1. Visit http://your-domain.com
  2. Confirm that it redirects to HTTPS
  3. Check the response status (301 for a permanent redirect)

3. Use a TLS testing tool​

  1. Visit https://www.ssllabs.com/ssltest/
  2. Enter your domain
  3. 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:

  1. Obtain a new certificate
  2. Upload the replacement certificate to the CDN
  3. 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 Tencent Cloud CDN enables HTTPS for edge delivery. Follow the steps above to upload the certificate and verify the resulting configuration.

Key points:

  • ✅ Upload the certificate to the CDN
  • ✅ Enable HTTPS secure acceleration
  • ✅ Configure HTTP-to-HTTPS redirects
  • ✅ Use CertOne automatic deployment

CertOne supports automatic certificate deployment to Tencent Cloud CDN, simplifying renewal and rollout.