以前使用的windows平台作為php運行的平台,感覺整體速度太慢,於是現在改為centos系統的linux平台。需要把windows中用pfx證書轉為appache用到key和crt組成的證書
將*.pfx文件放到bin目錄下,執行:
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)
appache配置ssl模塊請參考:https://www.cnblogs.com/vincentfu/p/5721374.html