Ask a Question

Solution ID : SO9688

Last Modified : 05/22/2018

Error "java.io.IoException: keystore was tampered with, or password was incorrect"

Problem

Error "java.io.IoException: keystore was tampered with, or password was incorrect"

Solution

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>