Keytool Bug when the SHA1 hash is used as a keystore alias.
843811Aug 26 2010 — edited Aug 27 2010Does 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.