Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Configuring an HTTPS Certificate

Updated on 2025-02-21 GMT+08:00

Background

CDN supports HTTPS acceleration. You can configure an HTTPS certificate for an acceleration domain name on the CDN console. Then clients can use HTTPS to access CDN PoPs. The differences between HTTP and HTTPS are as follows:

  • HTTP

    HTTP transfers content in plaintext without any data encryption. If an attacker intercepts packets transmitted between browsers and website servers, the transmitted content can be read directly.

  • HTTPS

    Based on HTTP, HTTPS uses Secure Sockets Layer (SSL) to encrypt data transmission. With SSL, servers are authenticated using certificates, and communications between browsers and servers are encrypted.

Constraints

  • CDN supports your own certificates or SSL Certificate Manager (SCM) certificates. The format of your own certificates must meet the requirements described in HTTPS Certificate Requirements.
  • Only certificates and private keys in PEM format are supported. If a certificate is not in PEM format, convert the certificate by referring to HTTPS Certificate Requirements.
  • If two certificates are set for a domain name, the certificate standards must be different. That is, if you have added an international certificate for a domain name, you can only add a Chinese (SM2) certificate.
  • To change the certificate type from International to Chinese (SM2), QUIC should be disabled first.

Precautions

  • An acceleration domain name has its associated certificate. They must match. If your domain name is a wildcard domain, configure a certificate for it by referring to How Do I Configure a Certificate If My Domain Name Is a Wildcard Domain?
  • Certificate settings will be automatically deleted once HTTPS acceleration is disabled. To enable HTTPS acceleration again, you need to re-configure the certificate.
  • If your certificate has changed, update certificate information on the CDN console in a timely manner.
  • To use HTTPS for all links, the origin protocol should be HTTPS (and the origin server must support HTTPS). For details, see Origin Protocol.

Configuring an HTTPS Certificate

  1. Log in to Huawei Cloud console. Choose Service List > Content Delivery & Edge Computing > Content Delivery Network.

    The CDN console is displayed.

  2. In the navigation pane, choose Domains.
  3. In the domain list, click the target domain name or click Configure in the Operation column.
  4. Click the HTTPS Settings tab.
  5. On the HTTPS Settings tab page, click Edit. The Configure HTTPS Secure Acceleration dialog box is displayed.
    Figure 1 Configuring HTTPS secure acceleration
  6. Switch on Status to enable this configuration item.
  7. Set related parameters.
    Table 1 Parameters of an international certificate

    Parameter

    Description

    Certificate Standard

    International: SSL certificate that complies with international standards.

    Certificate Source

    Either My certificate or SCM certificate

    Certificate Name

    • My certificate: Enter the certificate name containing 3 to 64 characters.
    • SCM certificate: CDN automatically obtains SSL certificates uploaded to the CCM console. You only need to select the desired one from the drop-down list.

    Certificate Body

    • My certificate: Use a local text editor to open the certificate and copy the content to the text box.
    • SCM certificate: The certificate body is automatically filled in.
    NOTE:
    • The certificate body cannot contain spaces or blank lines. Otherwise, a message is displayed indicating that certificate parameters are incorrect.
    • The size of the certificate body cannot exceed 20 KB.

    Private Key

    • My certificate: Use a local text editor to open the private key and copy the content to the text box.
    • SCM certificate: The private key is automatically filled in.
    • The size of the private key cannot exceed 20 KB.
    Table 2 Parameters of a Chinese SM series cryptographic certificate

    Parameter

    Description

    Certificate Standard

    Chinese (SM2)

    Certificate Source

    Select My certificate or SCM certificate.

    Certificate Name

    • My certificate: Enter the certificate name containing 3 to 64 characters.
    • SCM certificate: CDN automatically obtains SSL certificates uploaded to the CCM console. You only need to select the desired one from the drop-down list.

    Signature Certificate

    Open the PEM file in the signature certificate to be uploaded as a text file and copy the certificate content in the file to this text box.

    Note that you need to upload a combined certificate file that contains both the server certificate content and certificate chain content into this field. The content of the certificate chain should be pasted right below the content of the server certificate.

    • The size of the signature certificate cannot exceed 20 KB.

    Signature Private Key

    Open the KEY file in the signature certificate to be uploaded as a text file and copy the private key in the file to this text box.

    • The size of the signature private key cannot exceed 20 KB.

    Encryption Certificate

    Open the PEM file in the encryption certificate to be uploaded as a text file and copy the certificate content in the file to this text box.

    You do not need to upload the certificate chain here.

    • The size of the encryption certificate cannot exceed 20 KB.

    Encryption Private Key

    Open the KEY file in the encryption certificate to be uploaded as a text file and copy the private key in the file to this text box.

    • The size of the encryption private key cannot exceed 20 KB.
  8. (Optional) To set another certificate, click Add at the bottom and set related parameters.
    • Standards of the two certificates must be different. For example, if you have set an international certificate, you can add a Chinese (SM2) certificate.
  9. Click OK.
  10. Check whether the HTTPS certificate has taken effect.

    If the certificate has taken effect, you can access website resources of the acceleration domain name through HTTPS and view the website authentication information by clicking the lock icon in the address box of the browser.

Updating an HTTPS Certificate

If your domain name certificate is updated, you need to update the certificate details in the HTTPS configuration item.

  1. Log in to Huawei Cloud console. Choose Service List > Content Delivery & Edge Computing > Content Delivery Network.

    The CDN console is displayed.

  2. In the navigation pane, choose Domains.
  3. In the domain list, click the target domain name or click Configure in the Operation column.
  4. Click the HTTPS Settings tab.
  5. On the HTTPS Settings tab, click Edit. The Configure HTTPS Secure Acceleration dialog box is displayed.
    Figure 2 Updating a certificate
  6. Click Update to update the configured certificate and private key. It takes approximately 5 to 10 minutes for the update to take effect.

Viewing HTTPS Certificate Information

On the HTTPS certificate configuration page, you can view details about the HTTPS certificate configured for the acceleration domain names.

  1. Log in to Huawei Cloud console. Choose Service List > Content Delivery & Edge Computing > Content Delivery Network.

    The CDN console is displayed.

  2. In the navigation pane, choose Domains.
  3. In the domain list, click the target domain name or click Configure in the Operation column.
  4. Click the HTTPS Settings tab.
  5. On the page displayed, you can view details about the HTTPS certificate configured for the domain name, such as the certificate expiration time. You can also view the certificate content. However, the private key content cannot be viewed, for security reasons.

Disabling a Certificate

  1. Log in to Huawei Cloud console. Choose Service List > Content Delivery & Edge Computing > Content Delivery Network.

    The CDN console is displayed.

  2. In the navigation pane, choose Domains.
  3. In the domain list, click the target domain name or click Configure in the Operation column.
  4. Click the HTTPS Settings tab.
  5. Click Edit next to HTTPS Settings.

    The Configure HTTPS Secure Acceleration dialog box is displayed.

  6. Disable the Status switch and click OK.
    • Disable QUIC before disabling the certificate.

Certificate Expiration Time

The expiration time of a certificate chain is the same as that of the certificate that first expires in the chain.

  • Huawei Cloud CDN sends an SMS or email notification to the mobile number or email address bound to your account 30 days, 15 days, and seven days before the certificate expires. However, no notification is sent when the domain name is in the disabled, banned, deleting, or reviewing state. For details about how to change the mobile number and email address, see Binding or Changing the Service Mobile Number and Changing the Service Email Address.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback