服務器端:linux
C:\Users\sks>keytool -genkey -alias tomcat -keyalg RSA -keystore c:\tomcat.keystapache
ore瀏覽器
瀏覽器端:tomcat
C:\Users\sks>keytool -keystore c:/tomcat.keystore -storepass 123456 -export -al服務器
ias demo -file c:/demo.cerspa
tomcat server配置:server
<Connector port="8080" protocol="HTTP/1.1" SSLEnabled="true"xml
maxThreads="150" scheme="https" secure="true"ssl
clientAuth="false" sslProtocol="TLS" it
keystoreFile="D:/servers/apache/tomcat/ssl/tomcat.keystore" keystorePass="123456"/>
瀏覽器配置:
雙擊xxx.cer,常規安裝證書,配置如圖:
添加linux版:
證書製做:
keytool -genkey -alias tomcat -keyalg RSA -keystore tomcat.keystore -validity 36500
service.xml配置:
<Connector port="8080" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="conf/ssl/tomcat.keystore" keystorePass="123456"/>