如何将IIS的SSL证书转移到Apache上

IIS导出的文件是.pfx格式,Apache的SSL证书是是.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.pfx是IIS导出的文件,利用openssl导出server.key和server.crt)

第三步:按照Apache安装SSL说明,安装Apache SSL模块和SSL证书
原文地址:https://www.cnblogs.com/top5/p/1589131.html