Get certificate from KeyStore without the alias?
843811Jul 31 2009 — edited Aug 3 2009Hello
I am using Java KeyStore with "ms-capi" to access the Windows keystore.
Some one managed to get certificates on the Windows keystore with the same "alias".
This as nothing to do with me, I just need to list all certificates regardless of the alias.
The current problem is that I list the alias in the Windows keystore and then use them to present the user a list of those certificates (by using KeyStore.getCertificate(String alias)).
However, this is working is not effective when two or more certs share the same alias because the returned certificate will always be the same.
So, is there another way to get certificates in the Windows keystore without relying on the alias?
Thank you
Cad