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!

Keytool help................!!!!!!!!

843810Jul 1 2002 — edited Sep 18 2002
Dear Sir,
I am a novice as far as Security issues are concerned in Java. I have gone through the tutorial of "Keytool" but I have got some problems. I have done the following things..

1. Created a keystore via command...
keytool -genkey -alias XXXXX
2. Requested CA to create a certificate
keytool -alias XXXXX -keypass XXXX -stotepass XXXXXX -file file_name

After this a file named file_name was created in the current directory. But when I tried to open it by double clicking..I got the message that the certificate is invalid. Then I

3. Exported the certificate in the file specified by file_name via
keytool -export -alias XXXXX -keypass XXXXX -file file_name
After this I again opened the file named file_name by double clicking. the file got opened but the certificate was invalid. So I have an option to install the certificate and I did that.

Till here it was ok but finally when i tried to import the certificate into keystore via command
keytool -import -alias XXXXXX -keypass XXXX -file file_name
I got the following message
keytool error :java.lang.Exception : certificate reply and certificate in keystore are identical.

I hope that any JGURU will give an attention to my problem and help me to fix it out.

Regs.
Roopesh

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 16 2002
Added on Jul 1 2002
4 comments
1,719 views