Tomcat6 启用 SSL,配置
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystorefile="c:\key\ssokey.keystore"
keystorepass="sso"
/>
报错:
严重:Failed to load keystore type JKS with path C:\Documents and Settings\Administrator/.keystore due to C:\Documents and Settings\Administrator\.keystore(系统找不到指定文件)
是因为即使配置了 keystorefile ,也还需要一个 .keystore 文件
解决方法:
运行
keytool -genkey -alias tomcat -keyalg RSA
如要输入密码:输入: changeit
剩下的就填填就好了(有建议说名子和姓氏不要用 IP ,要用域名),完成后 C:\Documents and Settings\Administrator 下面就会生成
.keystore 文件。
参考:
http://tomcat.10.n6.nabble.com/ssl-problems-td1999892.html