OCSP response does not give Certificate Status

前端 未结 1 1401
情书的邮戳
情书的邮戳 2021-02-20 08:27

I created an OCSP client using Bouncy castle API. I am having a trouble in finding the Certificate Status (Saying whether its revoked or not) from the OCSP response I get. The v

相关标签:
1条回答
  • 2021-02-20 09:01

    Actually, if you take a look at the actual value of CertificateStatus.GOOD, you will see that it is, in fact, null. In other words, resp.getCertStatus() returns null meaning GOOD.

    So you probably just need to take out that (status != null) check.

    0 讨论(0)
提交回复
热议问题