SSL Enabling Problem: Tomcat in Windows 7 [closed]

2019-08-15 16:41发布

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

3条回答
看我几分像从前
2楼-- · 2019-08-15 17:14

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

查看更多
We Are One
3楼-- · 2019-08-15 17:17

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.

查看更多
疯言疯语
4楼-- · 2019-08-15 17:31

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.

查看更多
登录 后发表回答