Howtos / Articles

Convert Certificate File From CRT to PFX using OpenSSL

This guide will show you how to convert a .crt certificate file and associated private key, and convert it to a .pfx file using OpenSSL. This can be useful if you need to take a certificate file, and load it onto a Windows server for example.

A PFX file is a way of storing private keys, and certificates in a single encrypted file. It is commonly used to import and export certificates and keys on a Windows PC.

In the example below, the following files will be used: – this is the public certificate file. – This is the private encryption key for the above certificate. – This will be the PFX file outputted from OpenSSL.

Converting the crt certificate and private key to a PFX file

$ openssl pkcs12 -export -out -inkey -in

This will create a pfx output file called “”.

You will be asked for the pass-phrase for the private key if needed, and also to set a pass-phrase for the newly created .pfx file too.

You can now load this .pfx file onto a Windows machine, or wherever needed.

Share this howto article!
  • Facebook
  • Twitter
  • Reddit
  • email

Leave a Reply




You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>