:::: MENU ::::

Generate certificate and private key from pfx

Recent server migration for client get me in to trouble of migrating SSL certificates , as it was re-seller purchase we don’t have anything except  exported PFX files , and to install SSL into plesk panel you need private key and certificate where pfx is no longer valid

After a while found usefull command that does fantastic job for me

You can download OpenSSL from Here

Or directly use plesk open SSL library to execute the command

1# Extract Certificate

“%plesk_bin%\openssl.exe” pkcs12 -in YOUR PFX FILE.pfx -nokeys -out cert.pem

This will generate certificate file

 

2# Extract Private Key

“%plesk_bin%\openssl.exe”   pkcs12 -in YOUR PFX FILE.pfx -nocerts -out key.pem -nodes

 

*Make sure this will ask you password you have entered during export of pfx files

 

Happy Coding !

 

 


So, what do you think ?