如何访问苹果 OS X 中安装的证书
就像在 Windows 中一样,我们有真正古老的 Capicom,它为我们提供了与 CryptoAPI 等效的接口,有什么东西可以帮助在苹果系统中获得证书吗?
如果没有,有什么方法可以访问它们吗?作者:bouncy Castle、Itext、java native...
谢谢
As in Windows, that we have the really old Capicom, that interfaces the CryptoAPI equivalent for us, is there something that helps getting a certificate in a apple system?
If not, is there some way to access them? By bouncy Castle, Itext, java native...
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 Java KeyStore API 访问 KeyChain,如 @vcsjones 所说。这是一些代码示例:
You can access the KeyChain with the Java KeyStore API as said by @vcsjones. This is some code sample:
您可能正在寻找 OSX 的钥匙串。 Java 有一个 API,它使用 <代码>KeyStore。您感兴趣的方法可能是
getCertificate
。You are probably looking for OSX's keychain. Java has an API which interacts with it using the
KeyStore
. The method of interest to you is probablygetCertificate
.