如何生成SSL的keystore文件
1. 进入jdk安装目录。
??? C:\Program Files\Java\JDK1.6\bin
?
2. 输入命令
??? keytool -genkey -keyalg RSA -alias tomcat
?
??? 默认密码是:changeit
3. 默认输出到
??? C:\Documents and Settings\{username}
?
?
4. tomcat server.xml配置:
<Connector port="8443" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="/home/tomcat/tomcat5.5/conf/.keystore" keystorePass="123456" />