How to Export the Private Key From a .PFX With OpenSSL

If you have a .pfx file and you need it’s private.key, then you can use OpenSSL for extracting .pem from .pfx ( the openssl software is available at openssl.org ) To export the private key ( .pem ) from the PFX file and save it to a PEM file :
$openssl pkcs12 -in /path/to/file_name.pfx -nocerts -out private_key_name.pem

If you want to remove the password from the private key file :
$openssl rsa -in private_key_name.pem -out new_private.pem
  • 92 Users Found This Useful
Was this answer helpful?

Related Articles

Setting time with NTP in LINUX

NTP (Network Time Protocol) could be used to set time synced with ntp clocks, to do this use the...

Linux version & Operating System info

LINUX Version Info To learn the architecture and kernel version info use the shell command...

Build PHP5.5 on CentOS 6.4 with MSSQL Support [cite]

Most of the yum repos doesn’t include PHP5.5.X on current releases for the time being. So...

Change Outgoing IP of Postfix Mail Server

This can get quite important when your mail server is blacklisted, or if you somehow want to...

Add New Hosting to a System Installed With Plugged.sh

If you use our LAMP installer script and want to add a new domain afterwards, we’ve created...