EldoS | Feel safer!

Software components for data protection, secure storage and transfer

extracting private key from X509 certificate pfx file

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#27221
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:

Code
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


Regards,


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

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

Reply

Statistics

Topic viewed 3803 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!