![](/img/trans.png)
[英]Error on Configure tomcat with SSL certificate using APR library on ubuntu
[英]SSL error in Ubuntu and Tomcat
I am new to SSL, trying to enable it in Tomcat, but I have folowing error showing up by firefox, when accesing https://localhost:8443/ :
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 can not be shown because the authenticity of the received data could not be verified.
* Please contact the web site owners to inform them of this problem. Alternatively, use the command found in the help menu to report this broken site.
密钥类型是 PKCS12 和 format.pfx,它是由我当地的银行办公室生成的,以备将来使用。
Tomcat 服务器。xml:
<Connector port="8443"
maxHttpHeaderSize="8192"
maxThreads="150"
minSpareThreads="25"
maxSpareThreads="75"
enableLookups="false"
disableUploadTimeout="true"
acceptCount="100"
scheme="https"
secure="true"
clientAuth="false"
sslProtocol="TLS"
keystoreFile="key.pfx"
keystorePass="mypassword"
keystoreType="PKCS12"/>
Tomcat 6 需要将Connector
标签的参数SSLEnabled
设置为 true,才能启用 SSL。 这很可能是 Firefox 报告的错误的原因,因为它可能在响应中接收 HTML 文档并尝试从它读取假定的 SSL 有效负载。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.