通过Java访问Windows证书存储证书? [英] Accessing Windows Certificate Store certs via Java?
问题描述
我正在寻找能够枚举和使用(签署)CurrentUser / My和LocalMachine / My中的证书的东西,但是我找不到任何针对Windows证书库的东西,只有Java自己的秘密商店。 此链接看起来很有希望,但我只能使用Java附带的内容。
I'm looking to write something that can enumerate and use (to sign) certificates in CurrentUser/My and LocalMachine/My, but I haven't been able to find anything for the Windows cert store, only Java's own secret store. This link looks promising, but I can only use what ships with Java.
我找到了这个问题之前询问过,但这是五年前的事,这是计算机时代的一段时间。谢谢!
I found this question asked on SO before, but it's from five years ago, which is a long time in computer years. Thanks!
推荐答案
用 -Djavax.net.ssl.trustStoreType = WINDOWS-ROOT启动Java
。
参见 http://www.oracle.com/technetwork/articles/javase/security-137537.html 了解更多信息。
这篇关于通过Java访问Windows证书存储证书?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!