Tomcat无法找到密钥库文件

时间:2014-10-02 03:43:00

标签: java tomcat ssl

我在server.xml中有这个配置

<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"
           maxThreads="150" scheme="https" secure="true"
           clientAuth="false" sslProtocol="TLS"
           keystoreFile="C:\www6.domain.com.jks"
           keystorePass="uatweb" 
           keyAlias="www6.domain.com.jks" />

但是,即使文件实际上在我指定的路径中,我也会收到tomcat无法找到文件的错误。

Caused by: java.io.FileNotFoundException: C:\.keystore (The system cannot find the file specified)
  at java.io.FileInputStream.open(Native Method)
  at java.io.FileInputStream.<init>(Unknown Source)
  at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:385)
  at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:291)
  at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:549)
  at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:489)
  at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:434)

我在这里缺少什么?

0 个答案:

没有答案