HTTPS (Hyper Text Transfer Protocol over Secure Socket Layer) is an HTTP channel designed to ensure security. It encapsulates HTTP with the SSL/TLS protocol, so the foundation of HTTPS security is SSL/TLS.
- Encrypt important information during transmission, avoiding attack-caused information leaking, such as session ID or cookies.
- Perform the data integrity during transmission, preventing man-in-the-middle attack (MITM), such as DNS or contents being hijacked by third party.
How it works
The HTTPS Secure Acceleration encrypts your request to Alibaba Cloud CDN nodes. And the CDN nodes still follow your origin site's configuration to access resources in the origin site. We recommend you configure and enable HTTPS on your origin site, encrypting your full-link HTTPS acceleration.
Here is the HTTPS encryption process:
- You start an HTTPS request.
- The server generates a public key and a secret key (self-made or apply from professional organization).
- The server sends the public certificate to your side.
- You side verify the certificate.
Note The certificate verification includes: the certificate being within the period of validity, the reliability of certificate's CA, the certificate's public key being able to encrypt the number signature of the server's issuer, and the domain name on the server's certificate being matched with its real domain name.
- If the certificate is correct, a random number (private key) is generated and encrypted with the public key, and transferred to the server.
- If the certificate is incorrect, the SSL handshake fails.
- The server uses the previous secret key to decrypt and get the random number (private key).
- The server encrypt the transmitted data by using the private key.
- You side decrypt the encrypted server date by using private key, and eventually get the data.
- HTTPS secure acceleration is available in the following service types: Image and Small File, Download, Video, and Live Streaming Media.
- HTTPS acceleration for wildcard domain names is available.
- You can Enable or Disable HTTPS acceleration:
- Enable: you can modify the certificate. The system is compatible with all your HTTP and HTTPS requests by default. You can also customize Forcible redirect for original request method.
- Disable: the system will neither support HTTPS request nor save the certificate or secret key's information. You need to re-upload the certificate or secret key when you reopen the certificate.
- You can check the certificate, but cannot check the secret key due to its importance. Make sure that you have taken care of certificate information.
- Update your certificate with caution. The update will take effect in 1 minute.
- To enable acceleration domain name with the HTTPS Secure Acceleration feature, you need to upload the certificate and secret key in the
PEMformat.Note As Alibaba Cloud CDN only adopts Nginx-based Tengine service, only the certificate in
PEMformat is available. For more information, see Certificate Format.
- Only SSL/TLS handshake with SNI information is available.
- The certificate you upload should be matched with your secret key, otherwise your verification may fail.
- Secret key with a password is unavailable.
- Purchase a certificate. Only when you own the certificate that is matched with your domain name can you enable HTTPS Secure Acceleration. You can easily purchase Alibaba Cloud Certificate in the SSL Certificate console, or apply for free certificate.
- Log on to the CDN console, and enter the Domain Names page. Select the domain name, and click Manage.
- In Modify. , click
- In the HTTPS Settings dialogue, enable HTTPS Secure.
- Select your certificate type. You can choose Alibaba Cloud, Custom or Free Cert. Currently, only the
PEMformat is available.
- You can choose the Alibaba Cloud Certificate. If you have no matched certificate in your list, choose custom certificate. You need to upload the certificate contents and secret key after setting the certificate name. This certificate will be saved in your Alibaba Cloud Security. You can check in My Certificate.
- You can also choose free certificate, namely, Alibaba Cloud CDN Digicert DV version SSL Free certificate. This free certificate is only available for Alibaba Cloud CDN service, and it can't be managed in the SSL Certificates service of Alibaba Cloud Security. This certificate is only used to enable HTTPS Secure Acceleration in CDN, and you cannot obtain its public and private keys for other use. After you choose to use the Free Cert type, it takes about 10 minutes for the certificate to be effective.
- Verify whether the certificate is effective. You can access resources by using HTTPS after the certificate becomes effective (about 1 hour). Green HTTPS mark indicates that you have established private connection with the website, and HTTPS secure acceleration has comes into effect.
- If you want to change your certificate to free certificate or Alibaba Cloud certificate, re-choose the target certificate (Free Cert or Alibaba Cloud Cert ) in the HTTPS Settings page.
- If you want to change your certificate to custom certificate, choose Custom in the HTTPS Settings page. Enter the target certificate name and contents to the box of the window, then deliver it.