Skip to content
instance method

OpenSSL::OCSP::SingleResponse#cert_status

() -> ::OpenSSL::OCSP::ocsp_status
single_response.cert_status → Integer

Returns the status of the certificate identified by the certid. The return value may be one of these constant:

  • V_CERTSTATUS_GOOD

  • V_CERTSTATUS_REVOKED

  • V_CERTSTATUS_UNKNOWN

When the status is V_CERTSTATUS_REVOKED, the time at which the certificate was revoked can be retrieved by revocation_time.

See also #certid #check_validity .new #extensions also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0