My Oracle Support Banner

Error "java.lang.exception: Public keys in reply and keystore don't match" when importing certificate into keystore (Doc ID 2458732.1)

Last updated on APRIL 19, 2021

Applies to:

Siebel CRM - Version 18.8 and later
Information in this document applies to any platform.


On : 18.8 version

While importing certificates from source and destination servers into each others keystores, the following is encountered:

For Server 1, able to import the certificate of Server 2 into Server 1 keystore file. However, trying to import Server 1 certificate into Server 2 keystore, getting error

keytool error: java.lang.Exception: Public keys in reply and keystore don't match

"Public keys in reply and keystore don't match" 

The issue can be reproduced at will with the following steps:
1. Run import command: keytool -import -alias siebel -file c:\keys\siebelkeystoreCASigned.cer -keystore c:\keys\siebelkeystore.jks
2. Get error




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

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