SSL Servlet实施问题:收到的记录超过了最大允许长度 [英] SSL Servlet Implementation Issue : received a record that exceeded the maximum permissible length

查看:844
本文介绍了SSL Servlet实施问题:收到的记录超过了最大允许长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在应用程序中使用SSL时遇到问题.我做了以下事情:

I am having problem using SSL with my application. I did the following:

我在安全约束标签中添加了以下内容:

I added the following passage to my security-contraint tag:

 <user-data-constraint>
        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>

并在Tomcat的Server.xml中添加了以下内容

and added the following in my Server.xml in Tomcat

<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.

有什么建议吗?

推荐答案

您必须设置 SSLEnabled到连接器上的true .

You must set 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" />

这篇关于SSL Servlet实施问题:收到的记录超过了最大允许长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆