tomcat配置https单向认证

来源:互联网 发布:李沁 田小娥 知乎 编辑:程序博客网 时间:2024/05/21 00:20
进入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/

即可

原创粉丝点击