如何与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.
发布评论