tomcat的https的例子

参考 http://jingyan.baidu.com/article/a948d6515d3e850a2dcd2ee6.html

D:\>keytool -genkey -v -alias tomcat -keyalg RSA -keystore D:\tomcat.keystore -validity 36500
D:\>keytool -genkey -v -alias mykey -keyalg RSA -storetype PKCS12 -keystore D:\mykey.p12
D:\>keytool -export -alias mykey -keystore D:\mykey.p12 -storetype PKCS12 -storepass haoning -rfc -file D:\mykey.cer
D:\>keytool -import -v -file D:\mykey.cer -keystore D:\tomcat.keystore
D:\>keytool -list -keystore D:\tomcat.keystore


tomcat7
conf/server.xml
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
keystoreFile="D:\\tomcat.keystore" keystorePass="haoning"
truststoreFile="D:\\tomcat.keystore" truststorePass="haoning"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
       clientAuth="false" sslProtocol="TLS"/>


附件是摄像头的驱动acer4750

猜你喜欢

转载自haoningabc.iteye.com/blog/2326289