SSL Enabling Problem: Tomcat in Windows 7 [closed]

 ̄綄美尐妖づ 提交于 2020-01-05 05:58:10

问题


I downloaded Tomcat 7.08 Windows Service Installer and installed it. I edited the server.xml to enable https connector port @ 8443 I already created the certificate and key pair using the keytool.

keytool -genkey -alias techtracer -keypass ttadmin -keystore techtracer.bin -storepass ttadmin

i started the server then, and tried https://localhost:8443/ but it was not showing anything. Firefox had shown "connected to localhost..." and nothing more. I cant load any pages in https.

My System: Windows 7 64-bits / 4GB RAM /JDK_JRE 6/ Tomcat 7.08/ Firefox 3.6

Can Any one tell me what is the problem with the SSL in my system.?.Any way to fix this? Thanks

Mr.k


回答1:


Solution: Update the server.xml file as follows:

<Connector port="8443" 
protocol="org.apache.coyote.http11.Http11Protocol"
SSLEnabled="true"               
maxThreads="150" scheme="https" secure="true" 
keystoreFile="C:\Program Files\Java\jdk1.6.0_25\keystore\.keystore"
keystorePass="changeit"
clientAuth="false" 
sslProtocol="TLS" />

Please note that I changed the protocol from "HTTP/1.1" to "org.apache.coyote.http11.Http11Protocol" This should fix the problem.




回答2:


Same system, same configuration, same problem but with Tomcat 6. My solution was to switch to 32bit version of Tomcat. I think this is an issue related to 64bit distributions.




回答3:


seems like you have to configure your TOMCAT to work with SSL (in addition to all the things that are written above)

have a look here. In addition, you might need to make another change in your settings.xml (tomcat configuration) and delete the line that refers to the APR listener.

Hope this helps...

Ohad



来源:https://stackoverflow.com/questions/5165497/ssl-enabling-problem-tomcat-in-windows-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!