Skip to content

Content Delivery Network

HTTPS certificates and redirects

Updated 4 min read

Configure a domain certificate and verify HTTPS before redirecting HTTP traffic.

Where to start

Go to CDN → Domain management, open the domain configuration and choose HTTPS. Prepare a valid certificate covering the acceleration domain and its matching private key.

Prepare a matching certificate

The certificate must cover the actual acceleration domain, be valid, and include the matching private key and required chain. Check the origin certificate separately from the certificate the CDN serves to visitors.

Enter private keys only in trusted certificate settings. Never include them in guides, support screenshots or public links.

Fields for your own certificate

Fields for your own certificate
FieldWhat to enterCommon mistakes
Certificate nameFor example, download-example-com. Start with a letter; use at most 65 characters: letters, digits, - / . _ *Chinese characters and spaces are unsupported; the name does not change domain coverage
Certificate contentThe acceleration domain's PEM certificateA certificate covering only example.com cannot be used for x.example.com
Private key contentThe complete PEM private key matching the certificatePassword-encrypted keys are unsupported; do not enter a CSR or another certificate's key
Certificate chainIntermediate certificates from the issuerA missing chain can cause verification failures on some devices

Configuration steps

  1. Enable HTTPS and choose Existing certificate ID or Upload your own certificate under Certificate source.
  2. For an existing certificate, enter its ID. For an upload, enter the name, certificate and private key, plus intermediate certificates if needed. Preserve all PEM BEGIN and END lines.
  3. Select Save HTTPS settings, review the confirmation and choose Save and submit. If activation is not confirmed, resolve the stated cause before enabling redirects.
  4. After saving, select Sync configuration. Visit a real file using the HTTPS acceleration domain and check the certificate received by the browser and the file content.
  5. Once HTTPS works, optionally enable HTTP to HTTPS redirect, choose 301 or 302 and save. Finally, check the redirect destination from the original HTTP URL.

Choosing 301 or 302

Avoid loops where the origin redirects to HTTP while the CDN forces HTTPS. Test HTTP/2 and TLS versions against your actual clients.

Choosing 301 or 302
OptionMeaning and impact
301Permanent redirect. Clients may cache it, so future changes must account for cached redirects.
302Temporary redirect, suitable for validation or a temporary migration.

Checks after renewing a certificate

Update before expiry, then inspect the domain coverage and validity of the certificate the browser actually receives. An upload-success message alone is insufficient.

Incomplete chains, mismatched keys and uncovered domains can break HTTPS. Do not ignore browser certificate warnings to declare success.

What to verify after saving

The browser must open a real HTTPS resource without bypassing certificate warnings. Domain coverage and validity must be correct, and content must match the origin. If redirects are enabled, HTTP must lead to the expected HTTPS path.

Enabled (form setting) only reflects the current switch value. It is not proof of activation if saving failed, certificate upload succeeded but binding failed, or configuration has not synced.