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

发表时间:2018-09-28 12:49 | 分类:建站经验 | 浏览:4,918 次

一般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

本文标签:

本文链接:https://www.sijitao.net/2738.html

欢迎您在本博客中留下评论,如需转载原创文章请注明出处,谢谢!

一键脚本 博客历程 留言联系 文章归档 网站地图 谷歌地图
Copyright © 2010-2024 章郎虫博客 All Rights Reserved.