This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Security and the fly likes Public keys in reply and keystore don't match Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Public keys in reply and keystore don Watch "Public keys in reply and keystore don New topic
Author

Public keys in reply and keystore don't match

moneer mohammed
Ranch Hand

Joined: Feb 18, 2005
Posts: 66
Hi
after i create keystore and CSR using keytool i went to openssl to create certificate then using keytool i tried to import this certificate the our keystore but i got this exception
keytool error: java.lang.Exception: Public keys in reply and keystore don't match
Thanks


java_just
greg stark
Ranch Hand

Joined: Aug 10, 2006
Posts: 220
There is an alias option (-alias) that is common to the genkeypair, certreq, and importcert command. You must use the same alias for each command. If that doesn't help, you'll need to provide details about each of the commands.


Nice to meet you.
Bhavin Langalia
Greenhorn

Joined: Jun 18, 2010
Posts: 2
I am also facing the same kind of issue. I have already kept alias same everywhere. I need to have this to implement WS Security feature with my web services. I am testing it through self signed certs created by me.

Thanks in advance.. :-)
 
Consider Paul's rocket mass heater.
 
subject: Public keys in reply and keystore don't match