进入conf找到server.xml
修改配置:
<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
修改后如下:
<Connector protocol="org.apache.coyote.http11.Http11NioProtocol"
port="9443" minSpareThreads="5" maxSpareThreads="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="D:/Apache/tomcatHTTPS2/server.keystore"
keystorePass="changit"/>
然后启动tomcat,访问https://localhost:9443/
即可
Tomcat HTTPS 配置及访问教程
本文详细介绍了如何在 Tomcat 中配置 HTTPS 并成功访问 https://localhost:9443/ 的过程,包括修改 server.xml 文件、设置 SSL 参数、启动 Tomcat 以及验证配置的有效性。
879

被折叠的 条评论
为什么被折叠?



