Content is empty
If you don't find the content you expect, please try another search term
Last updated:2021-05-26 16:59:48
You must apply for a certificate in the PEM format that is to be used in Linux.
A certificate file issued by a root certificate authority (CA) contains a single certificate. You only need to upload the certificate to SLB. The website that is configured with the certificate will be regarded as a trusted website and does not require additional certificates.
A certificate file issued by an intermediate CA contains multiple certificates. One certificate is the server certificate and the others are the intermediate certificates. You must concatenate the certificates as required and then upload the result to SLB.
If your certificate file contains a certificate chain, you must convert the certificate chain content to the PEM format before you concatenate certificates.
The following content shows the formats and examples of a certificate and certificate chain. Make sure that the formats are correct before you upload certificates.
Certificates must comply with the following format rules:
Certificate chains must comply with the following format rules:
The following figure shows a sample RSA private key.
An RSA private key must meet the following format requirements:
If an RSA private key does not meet the format requirements, run the following command to convert the key:
openssl rsa -in old_server_key.pem -out new_server_key.pem
Then, upload the content of the new_server_key.pem file together with the certificates.
Currently, Kingsoft Cloud SLB supports only certificates in the PEM format. To upload a certificate in a different format, you must convert the format to the PEM format. We recommend that you use the openssl tool to convert the format. The following sections describe format conversion methods for some popular certificate formats:
The DER format is typically used on a Java platform.
Use the following command for certificate format conversion:
openssl x509 -inform der -in certificate.cer -out certificate.pem
Use the following command for private key format conversion:
openssl rsa -inform DER -outform PEM -in privatekey.der -out privatekey.pem
The P7B format is typically used on a Windows server or Tomcat platform.
Use the following command for certificate format conversion:
openssl pkcs7 -print_certs -in incertificat.p7b -out outcertificate.cer
Obtain and upload the part in the outcertificat.cer file that starts with -----BEGIN CERTIFICATE----- and ends with -----END CERTIFICATE----- as the certificate.
No private key exists in this case.
The PFX format is typically used on a Windows server.
Use the following command for certificate format conversion:
openssl pkcs12 -in certname.pfx -nokeys -out cert.pem
Use the following command for private key format conversion:
openssl pkcs12 -in certname.pfx -nocerts -out key.pem -nodes
Pure Mode