Skip to main content

Posts

Showing posts with the label key

EXTRACT PRIVATE KEY AND CRT FROM PFX FILE

  Information To extract separate Certificate and Private key files from the  *.pfx  file follow the procedure below: Download and extract the Win32  OpenSSL  package to C:\ directory. Open a command prompt, and move to the  OpenSSL-Win32\bin  directory, using: cd C:\OpenSSL\bin Execute the following command to export Private Key file: openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key] Then remove the passphrase from the Private Key openssl rsa -in [keyfile-encrypted.key] -out [keyfile-decrypted.key] Export certificate file: openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]