tomcat启用https配置

来源:互联网 发布:监测游戏帧数软件 编辑:程序博客网 时间:2024/06/06 13:56

jdk的bin目录的keytool.exe

命令:keytool -genkeypair -alias "tomcat" -keyalg "RSA" -keystore "d:\tomcat.keystore" 

先输入密码,这个在tomcat的server.xml文件配置需要

姓氏或姓名输入ip地址,其他可以随便输入

tomcat的server.xml文件配置

<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
               maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" 
  keystoreFile="d:/tomcat.keystore" keystorePass="tomcat"/>

keystoreFile 秘钥库

keystorePass 密码

原创粉丝点击