Combine your key and certificate files into a PEM file.
Procedure
- Create a new server.pem file and open it in a text editor.
- Copy the contents of your server.key file and paste it in server.pem using the following format.
-----BEGIN RSA PRIVATE KEY----- (Your Private Key: server.key) -----END RSA PRIVATE KEY-----
- Copy the contents of the server.crt file you received from a certificate authority and paste it in server.pem using the following format.
-----BEGIN CERTIFICATE----- (Your Primary SSL certificate: server.crt) -----END CERTIFICATE-----
- If the Certificate Authorities provided you with an intermediate or chained certificate, append the intermediate or chained certificates to the end of the public certificate file in the following format.
-----BEGIN RSA PRIVATE KEY----- (Your Private Key: server.key) -----END RSA PRIVATE KEY----- -----BEGIN CERTIFICATE----- (Your Primary SSL certificate: server.crt) -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- (Your Intermediate certificate: DigiCertCA.crt) -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- (Your Root certificate: TrustedRoot.crt) -----END CERTIFICATE-----
- Save your server.pem file.