All Products
Search
Document Center

ApsaraVideo Live:Secure acceleration

Last Updated:Nov 27, 2025

ApsaraVideo Live supports HTTPS secure acceleration and force redirect. This topic describes how secure acceleration works, its benefits, usage, and important notes.

Background

Because the Hypertext Transfer Protocol (HTTP) transmits content in plaintext and does not provide data encryption, data can be easily intercepted and read during transmission.

Overview

ApsaraVideo Live supports HTTPS secure acceleration and force redirect. To use force redirect, you must first configure an HTTPS certificate.

  • HTTPS:

    Hypertext Transfer Protocol Secure (HTTPS) is a secure version of HTTP. Unlike HTTP, which transmits content in plaintext, HTTPS uses the Secure Sockets Layer (SSL)/Transport Layer Security (TLS) protocol for encapsulation. The security of HTTPS is based on SSL/TLS.

    HTTPS provides identity verification and encrypted communication. It is widely used for secure communications over the World Wide Web. According to a 2017 report from the Electronic Frontier Foundation (EFF), more than half of all web traffic worldwide is now encrypted using HTTPS.

  • Force redirect:

    This feature redirects client requests to points of presence (POPs) over HTTP or HTTPS.

    If you enable HTTPS secure acceleration for your accelerated domain name, you can configure custom settings to force redirect requests from end users. For example, after you enable Enable HTTPS, if an end user initiates an HTTP request, the server returns an HTTP 301 status code to redirect the request to HTTPS, as shown in the following figure.

How it works

When you enable HTTPS in the ApsaraVideo Live console, requests between clients and ApsaraVideo Live nodes are encrypted using HTTPS. When an ApsaraVideo Live node retrieves a resource from the origin server to return to a client, the protocol used for the connection to the origin server depends on the origin server's configuration. We recommend that you configure and enable HTTPS on your origin server to implement end-to-end HTTPS encryption.

The following figure shows the HTTPS encryption flow.

image
  1. The client initiates an HTTPS request.

  2. The server generates a public key and a private key. You can create the key pair yourself or obtain it from a professional organization.

  3. The server sends the public key certificate to the client.

  4. The client verifies the certificate.

    • If the certificate is valid, the client generates a random number (key). The client then uses the public key to encrypt the random number and sends it to the server.

    • If the certificate is invalid, the SSL handshake fails.

    Note

    Correctness includes the following:

    • The certificate has not expired.

    • The certificate authority (CA) that issued the server certificate is trusted.

    • The issuer's public key can correctly decrypt the digital signature on the server certificate.

    • The domain name on the server certificate matches the actual domain name of the server.

  5. The server uses its private key to decrypt the message and obtain the random number (key).

  6. The server uses the key to encrypt the data for transmission.

  7. The client uses the key to decrypt the encrypted data from the server to read the content.

Benefits

  • Secure transmission: HTTPS secures data transmission and effectively prevents risks such as eavesdropping, tampering, impersonation, and hijacking that are associated with plaintext HTTP.

  • Information encryption: Critical information is encrypted during data transmission. This prevents sensitive information leaks that can occur if a session ID or cookie is captured.

  • Data integrity: Data integrity is verified during transmission to prevent man-in-the-middle (MITM) attacks, such as DNS or content hijacking and tampering.

  • Industry standard: Major browsers mark HTTP as insecure, which affects user experience and access security. HTTPS is the industry standard. It supports HTTP/2, improves search engine ranking, and enhances user experience.

We strongly recommend that you upgrade your access protocol to HTTPS to improve security and user experience.

How to use

HTTPS secure acceleration

To access resources over HTTPS and enable secure acceleration, you must configure an HTTPS certificate. For more information about certificates, see Certificate formats.

You can configure HTTPS secure acceleration in the ApsaraVideo Live console or by calling an API operation.

  1. To use the console, see Configure HTTPS secure acceleration.

  2. To use an API, call the SetLiveDomainCertificate operation to set the domain name certificate.

Related API operations:

API operation

Description

References

SetLiveDomainCertificate

Enables or disables the certificate feature for a domain name and modifies certificate information.

Set a domain name certificate

DescribeLiveCertificateList

Queries a list of certificates.

Query a list of certificates

DescribeLiveCertificateDetail

Queries the details of a certificate.

Query certificate information

BatchDeleteLiveDomainConfigs

Deletes the configurations of multiple domain names at a time.

Delete domain name configurations in a batch

Force redirect

Important

Before you configure force redirect, ensure that an HTTPS certificate is configured.

You can configure force redirect in the ApsaraVideo Live console or by calling an API operation.

  1. To use the console, see Configure force redirect.

  2. To use an API, call the BatchSetLiveDomainConfigs operation to set up force redirect.

Related API operations:

API operation

Description

References

BatchSetLiveDomainConfigs

Configures multiple domain names at a time.

You can configure HTTPS force redirect using the https_force record in the Functions parameter.

Configure domain names in a batch

Notes

Configuration

Description

Disable and Enable HTTPS

  • If you Disable HTTPS, HTTPS requests are not supported, and the certificate and private key information is deleted.

  • If you Enable the certificate again, you must re-upload the certificate and private key.

Upload a certificate/private key

  • For an accelerated domain name with Enable HTTPS enabled, you must upload a certificate and a private key. Both must be in PEM format.

    Note

    ApsaraVideo Live uses the Tengine service, which is based on Nginx. Therefore, only certificates in PEM format that can be read by Nginx are supported.

  • Only SSL/TLS handshakes that include Server Name Indication (SNI) information are supported.

  • The uploaded certificate and private key must match. Otherwise, verification fails.

  • An updated certificate takes one hour to take effect.

  • Password-protected private keys are not supported.

View a certificate

You can view a certificate. However, you cannot view the private key because it contains sensitive information. Keep your certificate information secure.

Modify or edit a certificate

You can modify or edit a certificate. Note that an updated certificate takes one hour to take effect. Proceed with caution.