Cer转换为pem证书


Windows下名为certnew.cer证书转换为linux下的pem证书:
在Windows服务器上打开certnew.cer证书,然后导出为.p7b类型,生成一个cerdaochu.pfx文件

 

 


将certnew.cer和cerdaochu.pfx 都上传到linux服务器

openssl x509 -inform der -in certnew.cer -out cer_test19.pem #导出证书,不包含私钥
openssl pkcs12 -in cerdaochu.pfx -nocerts -nodes -out cer_test19_private.key #导出私钥

cat cer_test19.pem cer_test19_private.key >cermail_test19.pem #合成包含私钥的pem证书

 


免责声明!

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



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