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證書