SSL证书的申请与部署

可在腾讯云上申请免费的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

 

posted @ 2022-04-09 14:46  贺小鸣  阅读(70)  评论(0编辑  收藏  举报
为尊重他人劳动成果,转载/摘抄请标明来源!