Certificate Format Conversion

From Tech-Wiki
Revision as of 09:09, 17 July 2013 by Jebr (Talk | contribs)

Jump to: navigation, search

Sometimes there is a need to convert a SSL certificate from one format to another for example a load balancer & Windows IIS will probably require different formats. You can use openssl to do this conversion by using the following commands.

Convert from PEM to PFX

openssl pkcs12 -export -out output.pfx -inkey input.key -in input.crt -certfile input.ca-bundle

Where
output.pfx      - this is the output file
input.key       - this is the original key file used to create the csr
input.crt       - this is the signed certifiate file received back from the certificate authority
input.ca-bundle - this is the cert chain file