带有SSL证书的Wampserver 3

时间:2017-02-10 16:57:39

标签: ssl wamp wampserver

我试图在Wamp上安装SSL证书。我在这里关注this tutorial,一切都没有错误,很好。但当我尝试访问https://localhost时,没有任何反应。该页面显示错误,表明它是一个不安全的连接。如果我仍然继续,那么我在地址上获得https,但标有红色警报。

此外,我尝试仅访问本地主机,但通常我通过虚拟主机处理多个网页,因此我不会访问localhost,而是访问mysite.me or之类的内容。 } https://mysite.me

注意:我使用的是Windows 10。

<小时/> 编辑:根据评论中的要求,我添加了我的httpd-ssl.conf文件

Listen 443

SSLCipherSuite HIGH:MEDIUM:!MD5:!RC4
SSLProxyCipherSuite HIGH:MEDIUM:!MD5:!RC4
SSLHonorCipherOrder on 
SSLProtocol all -SSLv3
SSLProxyProtocol all -SSLv3
SSLPassPhraseDialog  builtin
SSLSessionCache        "shmcb:E:/Install/wamp64/logs/ssl_scache(512000)"
SSLSessionCacheTimeout  300

<VirtualHost _default_:443>
    DocumentRoot "E:/Install/wamp64/www"
    ServerName localhost:443
    ServerAdmin admin@example.com
    ErrorLog "E:/Install/wamp64/logs/ssl_error.log"
    TransferLog "E:/Install/wamp64/logs/ssl_access.log"

    SSLEngine on
    SSLCertificateFile "E:/Install/wamp64/bin/apache/apache2.4.23/conf/certificate.crt"
    SSLCertificateKeyFile "E:/Install/wamp64/bin/apache/apache2.4.23/conf/private.key"

    <FilesMatch "\.(cgi|shtml|phtml|php)$">
        SSLOptions +StdEnvVars
    </FilesMatch>

    <Directory "E:\Install\wamp64\www">
        SSLOptions +StdEnvVars
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Require local
    </Directory>

    BrowserMatch "MSIE [2-5]" \
        nokeepalive ssl-unclean-shutdown \
        downgrade-1.0 force-response-1.0

    CustomLog "E:/Install/wamp64/logs/ssl_request.log" \
        "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>

0 个答案:

没有答案