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
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
  • camera.zip.jpg (6.5 MB)
  • 下载次数: 0

你可能感兴趣的:(tomcat)