一直在報整個錯誤,密碼明明沒有問題,中國搜出來的資料很多都說:
確實是密碼錯誤,刪除後重新做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