openssl转pfx

OpenSSL下载地址:https://slproweb.com/products/Win32OpenSSL.html

命令说明:
pkcs12:指定使用PKCS#12格式进行转换。
-export:表示导出PFX文件。
-out certificate.pfx:指定输出的PFX文件名。
-inkey privateKey.key:指定私钥文件。
-in certificate.crt:指定证书文件。
openssl pkcs12 -export -out name.pfx -in cert.pem -inkey privkey.pem
带密码的:openssl pkcs12 -export -out name1.pfx -in cert.pem -inkey privkey.pem -password pass:123456

posted @ 2026-05-08 17:32  小鬼PSer  阅读(6)  评论(0)    收藏  举报