My Oracle Support Banner

Error 'java.lang.Exception: Failed to parse input' On AIX When Importing SSL Certificate File Into Keystore (Doc ID 473643.1)

Last updated on FEBRUARY 13, 2024

Applies to:

Oracle Containers for J2EE - Version and later
Information in this document applies to any platform.


The command "$ORACLE_HOME/jdk/jre/bin/keytool -printcert -v -file sert.cer" fails with exception:

keytool error: java.lang.Exception: Failed to parse input

Due to the error, the certificate could not be imported in to the keystore. It works fine when reading/importing the same certificate using the keytool from JDK 1.4.2.
The problem was specific to JDK 1.5.0 version shipped with Oracle AS installation.

The used version is

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pap32dev-20060511 (SR2))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc-32 j9vmap3223-20060504 (JIT enabled)
J9VM - 20060501_06428_bHdSMR
JIT - 20060428_1800_r8
GC - 20060501_AA)
JCL - 20060511a


Upgrade/Installation of Oracle Application Server.


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.