pony

抄袭是一种美德

tomcat支持ssl时Keystore was tampered with, or password was incorrect

一直在报整个错误,密码明明没有问题,中国搜出来的资料很多都说:

确实是密码错误,删除后重新做key就可以了

刨去整个原因,还会有

Keystore was tampered with, or password was incorrect

错误的话,那可能的原因是:配置顺序的问题,即keystoreFile配置要写在Connectoer里面

 

而keystorePass则应该写到Factory中!否则就会一直报错。

 

原文描述如下:

 

The Error “java.io.IoException: keystore was tampered with, or password was incorrect”. This error occurs during installation. It is because the password should be in the factory className, not in the Connector className.

Please insure your Connector is in the following format:

  • <!-- Define an SSL HTTP/1.1 Connector on port 443 -->
  • <Connector className="org.apache.catalina.connector.http.HttpConnector"
  • port="443" minProcessors="5" maxProcessors="75"
  • keystoreFile="path.to.keystore"
  • enableLookups="true"
  • acceptCount="10" debug="0" scheme="https" secure="true">
  • <Factory className="org.apache.catalina.net.SSLServerSocketFactory"
  • clientAuth="false" protocol="TLS" keystorePass="keystore.password"/>
  • </Connector>
注释原文地址:http://www.globalsign.com/support/faq/tomcat/01.php

 

 

posted on 2009-11-13 10:35  马森  阅读(12220)  评论(0编辑  收藏  举报

导航