Upgrade fails due to issues with the keystore files


Issue

Upgrade fails with the following exception or you encounter the following exception while using the product, if the keystore.jceks file and the .keystore file have different passwords.

java.io.IOException: Keystore was tampered with, or password was incorrect

Fix

Ensure that the passwords for the keystore.jceks file and the .keystore file are the same. If they are not the same, update the password for the keystore.jckes file. Refer to the Knowledge Article for instructions on updating the password for keystore.jceks.

  • To find the password for the .keystore file, open the BCAN_HOME\tomcat\conf\catalina.properties file. The bna.connector.keystorePass property contains the password. 
  • To find the password for the keystore.jceks file: 
    • (Windows) Open the Registry, and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\enatomcat\Parameters\Java. Double-click Options in the right pane. The -Djavax.net.ssl.keyStorePassword property contains the password.
    • (Linux) Navigate to the /etc/systemd/system directory and open the enatomcat.service file. The -Djavax.net.ssl.keyStorePassword property contains the password. 

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*