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 SEPTEMBER 15, 2023

Applies to:

Oracle Unified Directory - Version 11.1.1.5.0 and later
Information in this document applies to any platform.

Goal

Import p7b cert using keytool and receiving error -

./keytool -importcert -trustcacerts -alias serverCert -file <path> -keystore <path to OUD keystore> -storetype JKS -storepass <PASSWORD> -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.