首页 > 其他 > 详细

.pfx格式转.key和.crt文件

时间:2016-03-09 11:09:05      阅读:481      评论:0      收藏:0      [点我收藏+]


IIS导出的文件是.pfx格式,ApacheSSL证书是是.key.crt文件。只需将.pfx文件转换为.key+.crt文件,将可以在Apache上安装了。

第一步:下载OpenSSL软件包 http://www.myssl.cn/download/OpenSSL_0.9.8.a_Win32.zip

第二步:解压缩到 c:\openssl 目录下,运行cmd.exe进入命令窗口,执行:
cd c:\openssl
 set OPENSSL_CONF=openssl.cnf
 openssl pkcs12 -in myssl.pfx-nodes -out server.pem
 openssl rsa -in server.pem -out server.key 
 openssl x509 -in server.pem -out server.crt
 (server.pfxIIS导出的文件,利用openssl导出server.keyserver.crt)



以上转换也可在linux上直接执行命令

.pfx格式转.key和.crt文件

原文:http://chentianwang.blog.51cto.com/9250930/1749010

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!