How to convert .crt to .pem

Ali picture Ali · Jan 14, 2011 · Viewed 663.9k times · Source

How can I convert .crt to .pem?

Answer

MrEyes picture MrEyes · Jan 14, 2011

You can do this conversion with the OpenSSL library

http://www.openssl.org/

Windows binaries can be found here:

http://www.slproweb.com/products/Win32OpenSSL.html

Once you have the library installed, the command you need to issue is:

openssl x509 -in mycert.crt -out mycert.pem -outform PEM