I'm trying to extract the private key and certificate from a PKCS12 file using pyOpenSSL, and am having a hard time figuring out how to convert the data to PEM-encoded strings. The question below implies that it's possible, but I haven't been able to figure it out.
Asked
Active
Viewed 2,476 times
1 Answers
2
Give a look on the dump_certificate, dump_certificate_request, dump_privatekey methods: http://pyopenssl.sourceforge.net/pyOpenSSL.html/openssl-crypto.html

Leon Waldman
- 271
- 6
- 9