9

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

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

我正在使用 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.

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

4

1 回答 1

5

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

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

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

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

听 *:80

稍后在httpd.conf中,您应该有如下内容:

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

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

SSLEngine on
listen *:443

重新启动 Apache,你应该一切顺利。

于 2013-02-21T00:35:53.427 回答