1. 首页
  2. 网站建设

如何把SSL证书的crt和私钥文件转换成pfx格式

一般apache和nginx等web服务器用的是crt和key文件配置ssl证书,Windows下的iis使用pfx。如何把crt,key转换成pfx格式。
命令类似如下:

openssl pkcs12 -export -inkey KEY_FILE_NAME -in CERT_FILE -out SOMETHING.pfx

如果需要把ca等都融合到pfx文件,命令类似如下:

openssl pkcs12 -export -inkey KEY_FILE_NAME -in CERT_FILE -certfile APACHE_CA_BUNDLE -out SOMETHING.pfx

参考链接:https://ssl4less.eu/faq/technical-questions/how-to-move-certificate-and-key-from-apache-to-iis.html

联系我们

0574-55011290

QQ:248687950

邮件:admin@nbhao.org

工作时间:周一至周五,9:00-18:00,节假日休息

QR code