安裝憑證 in XAMPP

安裝憑證 in XAMPP

1. 產生 CSR 檔:

openssl req -nodes -newkey rsa:2048 -sha256 –keyout prv.key -out server.csr –utf8
2. 待CER核發下來後,要轉 CRT 檔:

openssl x509 –in server.cer –out server.crt -inform DER
3. 編輯:C:\xampp\apache\conf\extra\httpd-ssl.conf
#Server Certificate:
SSLCertificateFile "conf/ssl.crt/server.crt"
#Server Private Key:
SSLCertificateKeyFile "conf/ssl.key/server.key"

檢查SSL: