SSL 启用问题:Windows 7 中的 Tomcat [英] SSL Enabling Problem: Tomcat in Windows 7
问题描述
我下载了Tomcat 7.08 Windows Service Installer 并安装了它.我编辑了 server.xml 以启用 https 连接器端口 @ 8443我已经使用 keytool 创建了证书和密钥对.
keytool -genkey -alias techtracer -keypass ttadmin -keystore techtracer.bin -storepass ttadmin
然后我启动了服务器,并尝试了 https://localhost:8443/ 但它没有显示任何内容.Firefox 显示已连接到本地主机...",仅此而已.我无法在 https 中加载任何页面.
我的系统:Windows 7 64 位/4GB RAM/JDK_JRE 6/Tomcat 7.08/Firefox 3.6
谁能告诉我系统中的 SSL 有什么问题.?有什么办法可以解决这个问题?谢谢
k 先生
解决方案:更新server.xml
文件如下:
<连接器端口="8443"协议="org.apache.coyote.http11.Http11Protocol"SSLEnabled="真"maxThreads="150" 方案="https" 安全="true"keystoreFile="C:\Program Files\Java\jdk1.6.0_25\keystore\.keystore"keystorePass="changeit"客户端验证=假"sslProtocol="TLS"/>
请注意,我将协议从 "HTTP/1.1"
更改为 "org.apache.coyote.http11.Http11Protocol"
这应该可以解决问题.>
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
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.
这篇关于SSL 启用问题:Windows 7 中的 Tomcat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!