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?