Certificates – How to convert PFX to PEM

In order to do this you must have OpenSSL installed on your Windows or Linux system. This software is free to download and use.

Step 1 – Install OpenSSL

Linux

Download from https://www.openssl.org/source/

Windows

  1. Download either win32 or win64 from https://indy.fulgan.com/SSL/

2. Extract all the files in the ZIP to a folder ( e.g c:\openssl )

Step 2 – Convert PFX to PEM

  1. Open a command prompt and navigate to the OpenSSL directory.
  2. Type openssl (this will open the OpenSSL prompt)
  3. Type pkcs12 -in certificate.pfx -nokeys -out cert-key.pem
  4. Enter the required password for the key.
  5. This should now generate the PEM file in the OpenSSL folder.

Duncan Newell

Duncan is a technology professional with over 20 years experience of working in various IT roles. He has a interest in cyber security, and has a wide range of other skills in radio, electronics and telecommunications.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: