For live HTTPS configuration, the recommended certificate format is PEM (Privacy-Enhanced Mail). PEM is a base64-encoded format that includes the certificate and private key in plain text, typically enclosed between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- (or similar headers for the private key).
.crt or .pem) and the private key file (.key).A PEM certificate file (example.com.crt) might look like:
-----BEGIN CERTIFICATE-----
MIIFazCCBFOgAwIBAgISA...
... (base64-encoded data) ...
-----END CERTIFICATE-----
A PEM private key file (example.com.key) might look like:
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqh...
... (base64-encoded data) ...
-----END PRIVATE KEY-----
For HTTPS deployment on Tencent Cloud, upload the PEM-formatted certificate and private key in the SSL Certificate Service or directly configure them in services like Tencent Cloud Load Balancer or CDN. Tencent Cloud also provides free SSL certificates via the SSL Certificate Service, which are automatically issued in PEM format.