Search code examples
private-keypfxcrt

Get my private key


I've just recieved a certificate from Commodo. The ZIP file contains a xxx.crt and xxx.pb7b

I need to convert the xxx.pb7b file in to a xxx.pfx so that I can import it in IIS. I'm using OpenSSL for the conversion, but I need a private.KEY file.

Is there away to get\extract this file??


Solution

  • Export the current certificate (PFX) that is about to expire. This file contains your certificate and public key. Then use OpenSSL to extract the private key from the PFX file.

    openssl pkcs12 -in myfile.pfx -nocerts -out private_key.pem -nodes