Tomcat SSL Failed to load keystore type JKS with path 系统找不到指定文件

来源:互联网 发布:现在做网络推广好做吗 编辑:程序博客网 时间:2024/06/06 04:02

Tomcat6 启用 SSL,配置

[html] view plain copy
  1. <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"  
  2.            maxThreads="150" scheme="https" secure="true"  
  3.            clientAuth="false" sslProtocol="TLS"   
  4.     keystorefile="c:\key\ssokey.keystore"  
  5.     keystorepass="sso"  
  6. />  

报错:

严重: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


0 0
原创粉丝点击