Tomcat——tomcat-8.5配置https方式
tomcat的conf目录下修改server.xml文件,添加一下配置:
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true">
<SSLHostConfig>
<Certificate certificateKeystoreFile="conf/CertwithKey.pkcs12" certificateKeystorePassword="123456" />
</SSLHostConfig>
</Connector>