ssl在tomcat 6 + jsf 2.0上给出ssl_error_rx_record_too_long错误

我使用了这3个简单的步骤教程来在Tomcat 6上设置SSL。我是逐步进行的。我什至将ѭ0更改为与本教程中的相同。不幸的是,重新启动Tomcat并运行项目后,出现了ssl_error_rx_record_too_long错误 这是我所做的: 在Java bin文件夹中运行命令
keytool -genkey -alias techtracer -keypass ttadmin -keystore techtracer.bin -storepass ttadmin
回答问题 将techtracer.bin文件复制到tomcats webapps目录中 如下修改tomcats conf / 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=”../webapps/techtracer.bin”
keystorePass=”ttadmin” />
` 5.在jsf应用程序中修改web.xml文件,如下所示 添加此代码:
<security-constraint>
<web-resource-collection>
<web-resource-name>securedapp</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
另外,在浏览器结果中输入https:// localhost:8443 /,结果为“页面加载时连接已终止”。我不知道是什么原因导致了这个问题。请告诉我正确的方向。先感谢您 解决: 在Java bin文件夹中运行命令
keytool -genkey -alias tomcat -keyalg RSA
回答问题 如下修改tomcats conf / server.xml文件 `
<Connector
       protocol=\"org.apache.coyote.http11.Http11Protocol\"
       port=\"8443\" maxThreads=\"200\"
       scheme=\"https\" secure=\"true\" SSLEnabled=\"true\"
       keystoreFile=\"C:/Users/Szajba/.keystore\" keystorePass=\"changeit\"
       clientAuth=\"false\" sslProtocol=\"TLS\"/>
` 5.在jsf应用程序中修改web.xml文件,如下所示 添加此代码:
<security-constraint>
<web-resource-collection>
<web-resource-name>securedapp</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
对我来说很好。记住要更改密码     
已邀请:

要回复问题请先登录注册