000025030 - How to access Microsoft Windows certificate store from Java

Document created by RSA Customer Support Employee on Jun 16, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000025030
Applies ToCert-J
Microsoft Windows
Only available with Java 6.
IssueHow to access Microsoft Windows certificate store from Java
Resolution

Cert-C has sample/provider code for accessing the Microsoft Windows certificate store, but Cert-J does not.  You would need to write your own code to access the Windows certificate store.  It looks like you can now access CryptoAPI from Java 6: http://java.sun.com/javase/6/docs/technotes/guides/security/enhancements.html

? Access to native PKI and cryptographic services on Microsoft Windows

Added the SunMSCAPI <http://java.sun.com/javase/6/docs/technotes/guides/security/SunProviders.html#SunMSCAPI> JCE provider which uses the Microsoft CryptoAPI (CAPI) to offer a variety of RSA cryptographic functions. It acts as a bridge between Java applications and the services offered by the default RSA cryptographic service provider available via CAPI. It provides access to X.509 certificates and RSA key pairs, it performs RSA encryption and decryption, and it creates and validates RSA signatures. It also supports a cryptographic random number generator.

Legacy Article IDa33630

Attachments

    Outcomes