错误107(net :: ERR_SSL_PROTOCOL_ERROR):SSL协议错误

pbh*_*hle 8 ssl openssl tomcat7

我在tomcat上配置了SSL.我参考了以下站点中的步骤来配置SSL:

 http://wiki.openbravo.com/wiki/How_To_Configure_SSL_For_Windows
Run Code Online (Sandbox Code Playgroud)

我正在使用Win32 OpenSSL v0.9.8x Light安装程序和tomcat 7.0.22.但是当我访问 https://server.ensarm.com:8843/时,它会出现以下错误:

SSL connection error
Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have.
Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error.
Run Code Online (Sandbox Code Playgroud)

我不明白可能是什么问题.:(

Tal*_*tia 5

检查您的Apache错误日志,看看它是否有类似于以下内容的消息:

您在标准HTTPS(443)端口上配置了HTTP(80)!

这可能表示您已将Apache配置为在SSLEngine未打开时侦听端口443.

httpd.conf中只设置一个listen指令:

听*:80

稍后在httpd.conf中你应该有类似的东西:

<IfModule ssl_module>
Include conf/httpd-ssl.conf
</IfModule>
Run Code Online (Sandbox Code Playgroud)

httpd-ssl.conf(或等效的配置文件)中,确保在Listen指令之前启用了SSLEngine:

SSLEngine on
listen *:443
Run Code Online (Sandbox Code Playgroud)

重启Apache,你应该好好去.