https证书pfx 生成 pem,crt,key


(1)将.pfx格式的证书转换为.pem文件格式:

openssl pkcs12 -in xxx.pfx -nodes -out server.pem

(2)从.pem文件中导出私钥server.key:

openssl rsa -in server.pem -out server.key

(3)从.pem文件中导出证书server.crt 

openssl x509 -in server.pem -out server.crt

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM