My Oracle Support Banner

Importing an Existing Private Key To a New JKS Keystore (Doc ID 3010081.1)

Last updated on MARCH 14, 2024

Applies to:

Oracle WebLogic Server - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Goal

How to get past the following error while importing an already existing certificate to a new Java KeyStore (JKS) ?

keytool -importcert -v -noprompt -alias wlskeystore -file server.txt -keystore wls_identity.jks -storepass
Enter key password for <wlskeystore>
keytool error: java.lang.Exception: Public keys in reply and keystore don't match
java.lang.Exception: Public keys in reply and keystore don't match
       at sun.security.tools.keytool.Main.establishCertChain(Main.java:3906)
       at sun.security.tools.keytool.Main.installReply(Main.java:3111)
       at sun.security.tools.keytool.Main.doCommands(Main.java:1100)
       at sun.security.tools.keytool.Main.run(Main.java:391)
       at sun.security.tools.keytool.Main.main(Main.java:384)

Is there a way to reuse the same cert or would a whole new certificate be needed?

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


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