sign_webutil.sh or .bat Fails with "keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect" (Doc ID 2226942.1)

Last updated on FEBRUARY 16, 2017

Applies to:

Oracle Forms - Version 11.1.1.2.0 and later
Information in this document applies to any platform.

Symptoms

  

NOTE: The sign_webutil script was provided as a courtesy when it was common that only one jar was needed to be self-signed and self signing was more common.  It is not recommended anymore.  The steps in the following <Note 2065434.1> are recommended for signing jar files.

 

Trying to sign a non-oracle jar file like jacob.jar fails as follows.

Example

$ sign_webutil.sh jacob.jar
WARNING:

Self-signing Jar files is no longer recommended.
Jar files should be digitally signed using a trusted certificate.

Generating a self signing certificate for key=XXXXX...
keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect

Backing up jacob.jar as jacob.jar.old...

Signing jacob.jar using key=XXXXX...
jarsigner error: java.lang.RuntimeException: keystore load: Keystore was tampered with, or password was incorrect
Signing jacob.jar failed.

 

 

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