tomcat证书制做

服务器端: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"/>

相关文章
相关标签/搜索