How can I create a PEM file from an SSL certificate?
These are the files that I have available:
.crtserver.csrserver.key
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your keys may already be in PEM format, but just named with .crt or .key.
If the file’s content begins with
-----BEGINand you can read it in a text editor:The file uses base64, which is readable in ASCII, not binary format. The certificate is already in PEM format. Just change the extension to .pem.
If the file is in binary:
For the server.crt, you would use
For server.key, use
openssl rsain place ofopenssl x509.The server.key is likely your private key, and the .crt file is the returned, signed, x509 certificate.
If this is for a Web server and you cannot specify loading a separate private and public key:
You may need to concatenate the two files. For this use:
I would recommend naming files with “includesprivatekey” to help you manage the permissions you keep with this file.