Ubuntu和Tomcat中的SSL错误

我是SSL的新手,尝试在Tomcat中启用它,但是在访问 https://localhost:8443/时我遇到了firefox出现的错误

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和格式.pfx,它由我当地的银行办公室生成,以备将来使用.

Tomcat server.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有效负载.

相关文章

ubuntu退出redis的示例:指定配置文件方式启动源码redis:roo...
ubuntu中mysql改密码忘了的解决方法:1.在终端中切换到root权...
ubuntu安装mysql失败的解决方法原因:可能是原有的MySQL还有...
使用centos和ubuntu建站的区别有以下几点1.CentOS是Linux发行...
ubuntu图形界面和字符界面切换的方法:可以通过快捷键CTRL+A...
ubuntu中重启mysql失败的解决方法1.首先,在ubuntu命令行中,...