我在使用我的应用程序时遇到问题。我做了以下事情:
我在安全约束标记中添加了以下段落:
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
并在我的Tomcat中的Server.xml中添加了以下内容
<Connector port="8443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" debug="0" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="c:/keystore.key"
keystorePass="mypassword" />
现在
https://localhost:8443/Appname/page.jsp
我得到以下
Secure Connection Failed
An error occurred during a connection to localhost:8443.
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the website owners to inform them of this problem. Alternatively, use the command found in the help menu to report this broken site.
有什么建议吗?
答案 0 :(得分:4)
您必须设置SSLEnabled
to true
on your connector。
<Connector port="8443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" debug="0" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="c:/keystore.key"
keystorePass="mypassword"
SSLEnabled="true" />
答案 1 :(得分:0)
它还取决于您使用的浏览器。我自己在当地环境中遇到了同样的问题。我曾尝试在Firefox和Chrome中遇到过这个问题。但是当我在谷歌上阅读几个帖子后尝试使用Internet Explorer时,它没有任何问题。
-Thanks