服务器端:
C:\Users\sks>keytool -genkey -alias tomcat -keyalg RSA -keystore c:\tomcat.keyst
ore
浏览器端:
C:\Users\sks>keytool -keystore c:/tomcat.keystore -storepass 123456 -export -al
ias demo -file c:/demo.cer
tomcat server配置:
<Connector port="8080" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="D:/servers/apache/tomcat/ssl/tomcat.keystore" keystorePass="123456"/>
浏览器配置:
双击xxx.cer,常规安装证书,配置如图:
时间: 2024-10-06 19:48:21