2012-09-14 1041 views
8

我在我的tomcat上配置了SSL。我提到的步骤从以下站点配置SSL:错误107(net :: ERR_SSL_PROTOCOL_ERROR):SSL协议错误

http://wiki.openbravo.com/wiki/How_To_Configure_SSL_For_Windows 

我使用Win32 OpenSSL的v0.9.8x灯的安装和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. 

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

回答

5

检查Apache的错误日志,看它是否有类似消息:

You configured HTTP(80) on the standard HTTPS(443) port!

这可能表明你已经配置Apache监听端口443,而SSLEngine的是不是

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

Listen *:80

后来在的httpd.conf你应该有一些看起来像:

<IfModule ssl_module> 
Include conf/httpd-ssl.conf 
</IfModule> 

的httpd-ssl.conf中(或同等配置文件),请确保您已启用的SSLEngine前Listen指令:

SSLEngine on 
listen *:443 

重新启动Apache,你应该很好。