Tomcat SSL Failed to load keystore type JKS with path 系统找

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 pathC:\Documents and Settings\Administrator/.keystore due toC:\Documents and Settings\Administrator\.keystore(系统找不到指定文件)

是因为即使配置了keystorefile ,也还需要一个.keystore 文件

解决方法:

运行

keytool -genkey -alias tomcat -keyalg RSA

如要输入密码:输入:changeit

剩下的就填填就好了(有建议说名子和姓氏不要用 IP ,要用域名),,完成后C:\Documents and Settings\Administrator 下面就会生成

.keystore 文件。

参考:

版权声明:本文为博主原创文章,未经博主允许不得转载。

生活是一段奇妙的旅行,就在那一去无返的火车上。

Tomcat SSL Failed to load keystore type JKS with path 系统找

相关文章:

你感兴趣的文章:

标签云: