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!

Can not get Windows intermediate Certificates

843811Aug 26 2009 — edited Aug 28 2009
Hi,

I would like to get list of certificates stored in windows keystore as "Intermediate Certification Authorities". I tried this:
KeyStore ks = KeyStore.getInstance("Windows-MY");
ks.load(null, null);
but the keystore is empty. When I try to get "Trusted Root Certification Authorities", i.e. I do this:
KeyStore ks = KeyStore.getInstance("Windows-ROOT");
ks.load(null, null);
then the keystore is succesfully loaded and i can enumerate certificates( Trusted Root certs only..).

I googled that "When a security manager is installed, the following call requires SecurityPermission "authProvider.SunMSCAPI"."

So I added this row into the java.policy file:
permission java.security.SecurityPermission "authProvider.SunMSCAPI"
but still I am not able to load them.

I guess that I miss something very basic, because I cannot google anything about this problem, do you have any idea?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 25 2009
Added on Aug 26 2009
7 comments
550 views