EldoS | Feel safer!

Software components for data protection, secure storage and transfer

extracting private key from X509 certificate pfx file

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
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 4071 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!