How to convert .pem into .key?

user1644587 picture user1644587 · Nov 14, 2013 · Viewed 200.8k times · Source

I already have purchased SSL certificate and i have received certificate and a .pem file as a private key? from the supplier; now i need to convert this .pem key into .key for bitnami Redmine Apache web server in order to make it work.

How do I go about doing this what what program or commands to do this? I am a newbie in terms of using Openssl etc to do this.

Any advice would be much appreciated!

Thank you.

Answer

Camille G. picture Camille G. · Nov 14, 2013

I assume you want the DER encoded version of your PEM private key.

openssl rsa -outform der -in private.pem -out private.key