如何与Java和OCSP核实证书未撤销

发布于 2025-02-09 18:57:05 字数 888 浏览 1 评论 0 原文

如何与Java和OCSP检查证书未撤销?对我来说,最好的选择是使用一些程序化解决方案,因为我从自定义代码中调用OCSP检查。我只想调用 ocspchecker.checkcertificaterevocationstatus 方法之类的东西。

Oracle具有内部 sun.security.provider.certpath.ocsp 类,但使用内部类并不是好习惯。

此stackoverflow 有关此问题的深入信息,但进一步链接资源 and 似乎很复杂。

那么,使用OCSP和Java编程进行证书撤销检查的最简单方法是什么?我更喜欢基本的公共Java API解决方案,但也可以使用简单的开源库。

How to check with Java and OCSP that the certificate is not revoked? For me the best choise would be use some programmatic solution, because I'm calling the OCSP check from the custom code. I want just call something like OCSPChecker.checkCertificateRevocationStatus method.

The Oracle has the internal sun.security.provider.certpath.OCSP class for this, but it's not good habit to use the internal class.

This Stackoverflow page offers deep information about the issue, but further link resources Java Secure Socket Extension (JSSE)
Reference Guide
and Java PKI Programmer's Guide seem quite complicated.

So what is the easiest way to do the certificate revocation check programatically with OCSP and Java? I prefer basic public Java API solution, but also simple open source libraries could be used.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文