Converting a Microsoft PKCS12 Certificate to PEM format
search cancel

Converting a Microsoft PKCS12 Certificate to PEM format

book

Article ID: 165621

calendar_today

Updated On:

Products

ProxySG Software - SGOS

Issue/Introduction

Converting a Microsoft PKCS12 Certificate to PEM format
You want to know how to convert a Microsoft PKCS12 Certificate to PEM format

Resolution

To convert a certificate from PKCS12 format to PEM format using OpenSSL via Cygwin on Microsoft Windows:

  • install Cygwin
  • install OpenSSL with Cygwin
  • run OpenSSL via Cygwin interface
  • issue the CLI command: pkcs12 -in filename.p12 -out filename.pem


Note: You will be prompted for a password to decrypt the PKCS12 file, and for a pass phrase to encrypt the private key on output.

Cygwin can be downloaded from http://www.cygwin.com/ .  OpenSSL is a package within Cygwin.  Within Cygwin, OpenSSL is a part of the "Net" category of applications and should be a part of the default install.