分享

Extract private key and certificate from a PKCS12 file

 digitaldreamer 2007-01-23
Openssl pkcs12 -in c:\ssl\s_client\clientcert.pfx -out c:\ssl\s_client\splited

The generated file,splited, is in PEM format. It contains two parts, one is a private key, the other one is a certificate.

Copy content between  -----BEGIN RSA PRIVATE KEY-----  and -----END RSA PRIVATE KEY-----  (including these two lines) and save them into a seperated file called private.pem.

Copy content between  -----BEGIN CERTIFICATE-----  and -----END CERTIFICATE-----  (including these two lines) and save them into a seperated file called certificate.pem.




    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多