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