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!

Get certificate from KeyStore without the alias?

843811Jul 31 2009 — edited Aug 3 2009
Hello

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 31 2009
Added on Jul 31 2009
6 comments
1,279 views