Java:从Windows存储读取证书 [英] Java: Read certificates from windows store
本文介绍了Java:从Windows存储读取证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以编写一个Java程序来读取存储在Windows证书存储中的一个证书(获取私钥和公钥)?
It is possible to write a Java program to read one certificate (getting private and public key) stored in windows certificate store ?
感谢
推荐答案
如果你使用Java 6,你可以使用MSCAPI密钥库来读取它。只需像这样打开您的密钥库:
If you are on Java 6, you can use the MSCAPI keystore to read it. Just open your keystore like this,
KeyStore msCertStore = KeyStore.getInstance("Windows-MY", "SunMSCAPI");
这篇关于Java:从Windows存储读取证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文