tencent cloud

Tencent Cloud EdgeOne

Certificate Format Requirements

Download
Focus Mode
Font Size
Last updated: 2026-10-13 15:00:51
If your certificate is issued by a root CA, you will receive a unique certificate. No additional certificates are needed, and the configured website will be considered trustworthy by accessing devices such as browsers.
If your certificate is issued by an intermediate CA, you will receive a file containing multiple certificates. You need to manually concatenate the intermediate certificate and the root certificate in the correct order before uploading. The concatenation rule is: put the intermediate certificate first and the root certificate second, with no blank lines in between.
Note:
In general, there will be corresponding instructions issued by the institution when the certificate is awarded. Please refer to the instructions.

Examples of CA certificate format and certificate chain format

Below are examples of certificate and certificate chain formats. Please confirm that the formats are correct before the uploading:
1. Certificates issued by a root CA institution, in PEM format, are as follows:
-----BEGIN CERTIFICATE-----
MIIFsjCCA5qgAwIBAgIUcmZICtONCt8O1gxPTBqwmKwKEpgwDQYJKoZIhvcNAQEL
BQAwcTELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVN0YXRlMQ0wCwYDVQQHDARDaXR5
MRQwEgYDVQQKDAtFeGFtcGxlIE9yZzETMBEGA1UECwwKRXhhbXBsZSBDQTEYMBYG
A1UEAwwPRXhhbXBsZSBSb290IENBMB4XDTI1MTIwNTA5MzUxOVoXDTM1MTIwMzA5
MzUxOVowcTELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVN0YXRlMQ0wCwYDVQQHDARD
aXR5MRQwEgYDVQQKDAtFeGFtcGxlIE9yZzETMBEGA1UECwwKRXhhbXBsZSBDQTEY
MBYGA1UEAwwPRXhhbXBsZSBSb290IENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8A
MIICCgKCAgEAkMgJTBa8xMs7GTMO2/r3VidkdIBwLZRY0uwEwMafGHLIFy+u70ur
z5icrhXzsDyL/q3WacGJJU3dtRdvsbkTRTFeVMe9SfuPF1kuo8HRqaC0sWUSV+ZM
bULtl/B0IjE7QWXdJAJt8ucITYI/Etmox1lbwzcXqB+agjRUwVgoMxNySbOF4Ww1
Vbiz4OY0BqEf57OWtSxFPnZc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rJ3nudyu
aJw8pIOuDs+lpE7AoAtt5eDUWa3x9BSsEBBonruwLV3lrk+kYog/v+jW9+VKb/5d
3O5/6pGbh2guFTm4EqxrbBQX58QbcdTL6r/DH0eyRwyGwUtuygo+N5inHlpRzUeF
+pRV+9/lyT7cc1ASNDH1N/NbIiHWF3y89nT6cv3I7YX5F+gKiLcvUPMO7pRumI1/
gaQfVoJlzdPqxBu6jFpXnFxb2078ag==
-----END CERTIFICATE-----

The certificate format is:
-----BEGIN CERTIFICATE-----,-----END CERTIFICATE----- at the beginning and end.
Each line contains 64 characters, with the last line containing no more than 64 characters.
2. If the certificate is issued by an intermediate institution, the CA certificate must include a multi-level certificate chain. The certificate chain structure is shown as follows:
-----BEGIN CERTIFICATE-----
CA Intermediate certificate authority
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
CA Root certificate authority
-----END CERTIFICATE-----
Certificate chain rules:
There should be no blank lines between the certificates.
All certificates should meet the certificate format requirements mentioned above.

Certificate conversion to PEM format instructions

Generally, HTTPS certificates use the PEM format. For certificates in other formats that need to be converted to PEM, it is recommended to use the OpenSSL tool for conversion. Below are methods to convert several popular certificate formats to PEM.
DER to PEM
P7B to PEM
PFX to PEM
CER/CRT to PEM
The DER format is commonly found in the Java platform.
Certificate conversion:
openssl x509 -inform der -in certificate.cer -out certificate.pem
Private key conversion:
openssl rsa -inform DER -outform PEM -in privatekey.der -out privatekey.pem
The P7B format is commonly found in Windows Server and tomcat.
Certificate conversion:
openssl pkcs7 -print_certs -in incertificat.p7b -out outcertificate.cer
Obtain the content between -----EGIN CERTIFICATE----- and -----END CERTIFICATE----- in outcertificat.cer and upload it as the certificate.
Private key conversion: Private keys can usually be exported in the IIS server.
The PFX format is commonly found in Windows Server.
Certificate conversion:
openssl pkcs12 -in certname.pfx -nokeys -out cert.pem
Private key conversion:
openssl pkcs12 -in certname.pfx -nocerts -out key.pem -nodes
```
You can convert certificates in CER/CRT formats to PEM by directly modifying their file extensions. For example, you can directly rename the "servertest.crt" certificate file to "servertest.pem".




Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback