Skip to content
instance method

OpenSSL::OCSP::BasicResponse#add_status

(::OpenSSL::OCSP::CertificateId certificate_id, ::OpenSSL::OCSP::ocsp_status status, ::Integer? reason, ::Integer? revocation_time, ?::Integer | ::Time this_update, ?::Integer | ::Time next_update, ?::Array[::OpenSSL::X509::Extension] extensions) -> self
basic_response.add_status(certificate_id, status, reason, revocation_time, this_update, next_update, extensions) → basic_response

Adds a certificate status for certificate_id. status is the status, and must be one of these:

reason and revocation_time can be given only when status is OpenSSL::OCSP::V_CERTSTATUS_REVOKED. reason describes the reason for the revocation, and must be one of OpenSSL::OCSP::REVOKED_STATUS_* constants. revocation_time is the time when the certificate is revoked.

this_update and next_update indicate the time at which the status is verified to be correct and the time at or before which newer information will be available, respectively. next_update is optional.

extensions is an Array of OpenSSL::X509::Extension to be included in the SingleResponse. This is also optional.

Note that the times, revocation_time, this_update and next_update can be specified in either of Integer or Time object. If they are Integer, it is treated as the relative seconds from the current time.

See also #add_nonce #copy_nonce .new #find_response also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0