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

(Doc ID 2295829.1)

Last updated on FEBRUARY 07, 2018

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

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