My Oracle Support Banner

OUD11g - After Running "keytool -importcert" Error - keytool error: java.lang.Exception: Input not an X.509 certificate (Doc ID 2295829.1)

Last updated on JULY 10, 2019

Applies to:

Oracle Unified Directory - Version 11.1.1.5.0 to 12.2.1.3.0 [Release 11g to 12c]
Information in this document applies to any platform.

Goal

Import p7b cert using keytool but error -

./keytool -importcert -trustcacerts -alias serverCert -file <path> -keystore <path to OUD keystore> -storetype JKS -storepass xxxxx -v
keytool error: java.lang.Exception: Input not an X.509 certificate
java.lang.Exception: Input not an X.509 certificate
  at sun.security.tools.KeyTool.addTrustedCert(KeyTool.java:2626)
  at sun.security.tools.KeyTool.doCommands(KeyTool.java:1009)
  at sun.security.tools.KeyTool.run(KeyTool.java:340)
  at sun.security.tools.KeyTool.main(KeyTool.java:333)

 

Solution

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
Goal
Solution
References


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