My Oracle Support Banner

Keytool error: java.lang.Exception: Certificate reply and certificate in keystore are identical (Doc ID 1275064.1)

Last updated on AUGUST 10, 2018

Applies to:

Oracle WebCenter Portal - Version 11.1.1.1.0 and later
Information in this document applies to any platform.

Symptoms

Errors encountered importing certificate to a keystore using the "keytool" utility:

$ keytool -genkeypair -keyalg RSA -dname "cn=spaces,dc=example,dc=com" -alias orakey -keypass welcome1 -keystore webcenter.jks -storepass welcome1 -validity 1064
$ keytool -exportcert -v -alias orakey -keystore webcenter.jks -storepass welcome1 -rfc -file orakey.cer
Certificate stored in file <orakey.cer>
$ keytool -importcert -alias orakey -file orakey.cer -keystore webcenter.jks -storepass welcome1
Error:   

keytool error: java.lang.Exception: Certificate reply and certificate in keystore are identical

 

Cause

To view full details, 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 a vibrant support community of peers and Oracle experts.