<span style=”color:#FF0000;”><strong>2.安装 SSL</strong></span>
http://openssl.org
https://wiki.openssl.org/index.php/Binaries
https://slproweb.com/products/Win32OpenSSL.html
这里使用了 Apache/2.4.25 自带的 openssl ,在 D:\httpd\bin 目录 ,默认配置文件位于 C:/openssl-1.0.2j-win64/ssl/openssl.cnf
用命令建立 server.key 和 server.crt
set path=D:/httpd/bin
D:
cd D:/httpd/conf/
copy openssl.cnf openssl.conf
mkdir demoCA\newcerts
echo.>demoCA/index.txt
echo.>demoCA/serial
openssl genrsa -out server.key 1024
openssl req -new -x509 -key server.key -out server.crt -days 3650 -config openssl.conf
修改 D:/httpd/conf/httpd.conf 文件,去掉下面两行前面的 #
#LoadModule ssl_module modules/mod_ssl.so
#Include conf/extra/httpd-ssl.conf
修改 D:/httpd/conf/extra/httpd-ssl.conf 文件,注释下面的行
#SSLSessionCache “shmcb:d:/httpd/logs/ssl_scache(512000)”
<span style=”color:#FF0000;”><strong>3.安装 perl</strong></span>