HTTPS Tomcat 设置
我正在尝试在我的 tomcat 中配置 https。我浏览了很多博客并生成了密钥存储文件,并在 server.xml 中添加了以下标签。
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
connectionTimeout="20000" maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="../webapps/easwarkey.bin" keystorePass="easwar"/>
我也将标签保留为 8081 端口。
<Connector port="8081" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
但是当我启动服务器时。我可以看到 tomcat 的主页 @ http://localhost:8081/
但什么也看不到 @ https://localhost:8443
您能否提及除此之外还需要做什么。
提前致谢,伊斯瓦尔
I am trying to configure https in my tomcat. I have gone through many blogs and generated key store file and added the following tag in the server.xml.
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
connectionTimeout="20000" maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="../webapps/easwarkey.bin" keystorePass="easwar"/>
Also I left the tag with 8081 port as it is.
<Connector port="8081" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
But when i start the server. I can able to see the home page of the tomcat @ http://localhost:8081/
But nothing @ https://localhost:8443
Could you please mention what has to be done other than this.
Thanks in advance, Easwar
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论