Wednesday, June 9, 2010

Convert your .PFX (p12) certificate to a .pvk + .spc combination.
      Install OpenSSL.

      1) Extract your private key from the PFX file.

      ->openssl pkcs12 -in (pfx-file) -nocerts -nodes -out (pem-key-file)

      The PFX password will be asked.

      Download the PVK transform utility.

      -> pvk -in(pem-key-file) -topvk -out (pvk-file)

      2)Extract your certificates from the PFX file.

      -> openssl pkcs12 -in (pfx-file) -nokeys -out (pem-certs-file).

      The PFX password will be asked.

      Transform your PEM file to a SPC file.

      -> openssl crl2pkcs7 -nocrl -certfile (pem-certs-file) -outform DER -out (spc-file)

      Below is the screenshot of all the files involved in the above process.


No comments:

Post a Comment