参考[url]http://jingyan.baidu.com/article/a948d6515d3e850a2dcd2ee6.html[/url]
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
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
本文介绍了如何使用keytool为Tomcat服务器生成SSL证书,并详细展示了从创建密钥库到导入证书的整个过程。文中提供了具体的命令行操作步骤,包括生成密钥、导出证书、导入证书等。
1034

被折叠的 条评论
为什么被折叠?



