可在腾讯云上申请免费的SSL证书(一年)
申请后保存那个后缀为jks的证书
apache-tomcat环境配置:
需修改文件路径: D:\apache-tomcat-xxxx-windows-x64\apache-tomcat-xxxx\conf\server.xml
<Connector port="443" protocol="org.apache.coyote.http11.Http11Nio2Protocol" maxThreads="150" SSLEnabled="true" >
<SSLHostConfig >
<Certificate certificateKeystoreFile="conf/www.trustauth.cn.jks" certificateKeystorePassword="密码" type="RSA" />
</SSLHostConfig>
</Connector>
修改完后,重启tomcat