Register / Login  |  Desktop view  |  Jump to bottom of page

General Issues » JCAPI version 1.x

Author: andre999, Visitor
27/11/2013 05:31:39
Does the JCAPI API version 1.x provide method to add CA cert into the MS CAPI's ROOT ?

If there is, would you point out the classes involved?

Thanks,
Andrew

Author: tommy, Visitor
27/11/2013 17:51:15
Hi Andrew,

You can choose what CAPI system stores to use when you work with certificates in JCAPI. The class you should work with is named JCAPIProperties.

Here is an example of how you can do:

KeyStore ks = KeyStore.getInstance("msks", "JCAPI");
ks.load(null, null);
JCAPIProperties.getInstance().setExclusiveMSCertStore(ks, "Root"); //This will tell JCAPI to only use the CAPI system store Root.

..Do your stuff here...

JCAPIProperties.getInstance().resetMSCertStoreNames(); //Use the usual CAPI system stores again.


Just let us know if it doesn't work out for you.

Regards,
Tommy




Register / Login  |  Desktop view  |  Jump to top of page