EldoS | Feel safer!

Software components for data protection, secure storage and transfer

extracting private key from X509 certificate pfx file

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
Posted: 11/13/2013 04:24:45
by Jacob jvandiermen (Standard support level)
Joined: 08/09/2013
Posts: 55

Hello Vsevolod,

Here are the OpenSSL comandlines:

to save as PEM
openssl pkcs12 -in CertificateX509.pfx -nocerts -out privateKey.pem

to save as CRT
openssl pkcs12 -in CertificateX509.pfx -nocerts -out privateKey.crt        

to extract as KEY
openssl pkcs12 -in CertificateX509.pfx -nocerts -out privateKey.key


Posted: 11/13/2013 04:36:01
by Vsevolod Ievgiienko (EldoS Corp.)

You should use TElX509Certificate.SaveKeyTo*PEM methods to produce the same output.



Topic viewed 3715 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!