1.
- Run the following command, to create
server.key
andserver.crt
files:
$ openssl req -new -x509 -nodes -out server.crt -keyout server.key
These can be used as follows in yourhttpd.conf
file:
2.httpd
a:sslmode 去掉#
a:sslmode 去掉#
b:include ssl.conf 去掉#
c:listen 443
3.extra\ssl
SSLUseStapling On
SSLStaplingCache "shmcb:logs/ssl_stapling(32768)"
SSLCipherSuite ALL:!aNULL:RC4+RSA:+HIGH:+MEDIUM:+LOW:+EXP:+eNULL
SSLPassPhraseDialog builtin
SSLSessionCache "shmcb:c:/websoft/Apache24/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300
<VirtualHost _default_:443>
SSLEngine On
SSLCertificateFile "c:/websoft/Apache24/conf/server.crt"
SSLCertificateKeyFile "c:/websoft/Apache24/conf/server.key"
#SSLCertificateChainFile conf/ssl.crt/ca.crt // 暂未启用
#......
DocumentRoot "C:/websoft/Apache24/htdocs"
ServerName www.chensanli.com
</VirtualHost>
SSLUseStapling On
SSLStaplingCache "shmcb:logs/ssl_stapling(32768)"
SSLCipherSuite ALL:!aNULL:RC4+RSA:+HIGH:+MEDIUM:+LOW:+EXP:+eNULL
SSLPassPhraseDialog builtin
SSLSessionCache "shmcb:c:/websoft/Apache24/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300
<VirtualHost _default_:443>
SSLEngine On
SSLCertificateFile "c:/websoft/Apache24/conf/server.crt"
SSLCertificateKeyFile "c:/websoft/Apache24/conf/server.key"
#SSLCertificateChainFile conf/ssl.crt/ca.crt // 暂未启用
#......
DocumentRoot "C:/websoft/Apache24/htdocs"
ServerName www.chensanli.com
</VirtualHost>