jdk自带:
keytool工具生成证书:
keytool -genkey -alias mys -keyalg RSA或者
keytool工具生成证书:
keytool -genkey -alias mys -keyalg RSA -keystore e:/keystore/xxx
自己写路径
打开server.xml https配置注释代码,添加2行即可(注意:字段大小写,否则会报java.io.IOException: Keystore was tampered with, or password was incorrect等等错误)
keystoreFile="conf/.keystore"
keystorePass="qqqwww"
访问:
完成