2010 Jun 04 - bySean Lee Tweet P12 pfx PKCS12 privatekey publickey RSA X509 Extract privatekey and publickey from p12 $ openssl pkcs12 -in seanlee_yessign.p12 -clcerts -nokeys -out cert.pem $ openssl x509 -in cert.pem -pubkey -noout > pub.key $ cat pub.key $ openssl rsa -text -pubin -in pub.key -noout