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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Keytool Bug when the SHA1 hash is used as a keystore alias.

843811Aug 26 2010 — edited Aug 27 2010
Does anyone know why the following bug is happening.

When I receive my certifcates for my work I run "keytool -list -v -keystore [keystore_name.p12] -storetype pkcs12 -storepass [password]" to determine the alias of the keystore.

The bug is that the output of the alias for that keystore will be a random '1' or '2', depending on time or day. Seriously!
But when I open the same keystore with other programs (i.e. Keytool IUI, KeyStore Explorer) the true alias is the value of the SHA1 hash.

Does anyone know what is going on?

Also, my job will absolutely not allow the process in which the certificates are originally created to be changed. So, please no one say, "well just change the alias at creation," because that WILL not happen.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 24 2010
Added on Aug 26 2010
3 comments
481 views