Error 'java.io.IOException: Keystore Was Tampered With, or Password Was Incorrect' When Running encryptPwdutil Utitlity (Doc ID 2029292.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Agile PLM Framework - Version 9.3.3.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to get encrypted password by running encryptPwdutil utitlity, the following error occurs.

Error
Your environment has been set.
log4j:WARN No appenders could be found for logger (com.agile.util.sql.OracleConnectionImpl).
log4j:WARN Please initialize the log4j system properly.
java.io.IOException: Keystore was tampered with, or password was incorrect
  at com.sun.crypto.provider.JceKeyStore.engineLoad(JceKeyStore.java:867)
  at java.security.KeyStore.load(KeyStore.java:1214)
  at com.agile.util.crypto.CmdlineCryptoUtil.loadKeyStore(CmdlineCryptoUtil.java:218)
  at com.agile.util.crypto.CmdlineCryptoUtil.main(CmdlineCryptoUtil.java:291)

 

What is Working
Agile Application Server is up and running

 

Facts
The issue is only reproducible in specific environment.
Keystore in Agile database is same with the one backed up when installing Agile PLM. Refer to below note to understand how to backup the keystore:
Note:1526469.1 Agile Product Lifecycle Management (PLM) 9.3.2 Changes in Password Encryption



Steps
The issue can be reproduced at will with the following steps:
1. Open command line on Agile Application Server machine
2. Change directory to %Agile_Home%agileDomain\bin
3. Type in below:
encryptPwdutil -encrypt <password to encrypt>



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms