IBM Support

Imports using keytool fails with "Invalid keystore format" error

Troubleshooting


Problem

Attempts to use the IBM UrbanCode Deploy "keytool -importkeystore" command results in the error "java.io.IOException: Invalid keystore format".

Symptom

Trying to import entries from one keystore into another fails.

Command:
keytool -importkeystore -srckeystore <source-encryption.keystore> -destkeystore <target-encryption.keystore>

Result:
keytool error (likely untranslated): java.io.IOException: Invalid keystore format

Cause

The source keystore was created using an IBM SDK, and the import is attempting to use OpenJDK which results in the 'Invalid keystore format' error.

Resolving The Problem

The importing JDK needs to be of the same vendor as the one from which is was exported.

Use the IBM SDK and import the entries using the keytool shipped with IBM UrbanCode Deploy.

Note: If you need to convert the encryption.keystore created by the OpenJDK into a keystore that the IBM SDK can read, contact IBM Rational Client Support to obtain an utility that will allow you to convert it.

[{"Product":{"code":"SS4GSP","label":"IBM UrbanCode Deploy"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General Information","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"6.1;6.1.1;6.1.2;6.1.3;6.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 June 2018

UID

swg2C1000073