Combine your key and certificate files into a PEM file.

Procedure

  1. Create a new server.pem file and open it in a text editor.
  2. 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----- 
  3. Copy the contents of your server.crt file and paste it in server.pem using the following format.
    -----BEGIN CERTIFICATE----- 
      (Your Primary SSL certificate: server.crt)
    -----END CERTIFICATE-----  
  4. 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-----
  5. Save your server.pem file.