Create SSL pem file
To make .pem file from SSL certificate, run
1 |
cat yourdomain.key yourdomain.crt yourdomain.ca-bundle > yourdomain.pem |
Here is the format
1 2 3 4 5 6 7 8 9 |
-----BEGIN RSA PRIVATE KEY----- (Private Key: domain_name.key contents) -----END RSA PRIVATE KEY----- -----BEGIN CERTIFICATE----- (Primary SSL certificate: domain_name.crt contents) -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- (Intermediate certificate: certChainCA.crt contents) -----END CERTIFICATE---- |
ssls/namecheap SSL example
1 |
cat domain_com_key.txt domain.com/domain.com.crt domain.com/domain.com.ca-bundle > ssl.pem |