Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Public keys in reply and keystore don't match

843811Mar 7 2002 — edited May 21 2009
Hi,
I try to sign a certrequest wiht open ssl and import the result in my keystore.
But it doesn't work, I get the error message:
keytool error: java.lang.Exception: Public keys in reply and keystore don't match

here is what I do (obmitting aliases, filenames, and passwords):
- I create a keypair using keytool -genkey -keyalg RSA
- I create a certification request using keytool -certreq
- I get it signed with open ssl: openssl x509 -req -days 365 -in xxx.req -signkey xxx.private -out xxx.key
- I try to import the result into my keystore: keytool -import

and end up with the exception mentioned above.

any help would be apreciated
Spieler
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 18 2009
Added on Mar 7 2002
13 comments
64,961 views