My Oracle Support Banner

OID 10g Server SSL Certificate Renewal with Certificate Key Size of 4096 and 2048 Fails: keytool error: java.lang.Exception: Input not an X.509 certificate (Doc ID 1990506.1)

Last updated on OCTOBER 07, 2019

Applies to:

Oracle Internet Directory - Version 9.0.4 to [Release 10gR1 to 10gR3]
Information in this document applies to any platform.


Oracle Internet Directory (OID) 10g, e.g.

Renewing the SSL certificates for OID fails:

$ORACLE_HOME/jdk/bin/keytool -import -alias <ALIAS> -file ca.crt  -trustcacerts -v -keystore $ORACLE_HOME/javavm/lib/security/cacerts
Enter keystore password:  <PASSWORD>
keytool error: java.lang.Exception: Input not an X.509 certificate

Based on Document 1359473.1's Cause:  "The issue is due to the bug in JCE Provider integrated in the Sun Java 1.4.2, which supports cryptography for certificates with key size no longer than 2048 bytes. Customer has the certificate that is longer than 2048 bytes.

Requesting for custom JDK with the JCE bug fixed, as per this Note's Solution Option #1.

Another potential symptom/error: Oracle Wallet Manager (OWM) or orapki from 10g home fails with "Unknown error occured:" when attempting to import a 4k root certificate into a wallet.


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.