Keytool error: java.lang.Exception: Certificate reply and certificate in keystore are identical
(Doc ID 1275064.1)
Last updated on AUGUST 02, 2023
Applies to:
Oracle WebCenter Portal - Version 11.1.1.2.0 to 11.1.1.9.8 [Release 11g]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=<DOMAIN>,dc=com" -alias orakey -keypass <PASSWORD> -keystore webcenter.jks -storepass <PASSWORD> -validity 1064
$ keytool -exportcert -v -alias orakey -keystore webcenter.jks -storepass <PASSWORD> -rfc -file orakey.cer
Certificate stored in file <orakey.cer>
$ keytool -importcert -alias orakey -file orakey.cer -keystore webcenter.jks -storepass <PASSWORD>
$ keytool -exportcert -v -alias orakey -keystore webcenter.jks -storepass <PASSWORD> -rfc -file orakey.cer
Certificate stored in file <orakey.cer>
$ keytool -importcert -alias orakey -file orakey.cer -keystore webcenter.jks -storepass <PASSWORD>
Error:
keytool error: java.lang.Exception: Certificate reply and certificate in keystore are identical
Changes
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! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |