Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

OpenSSL::OCSP::BasicResponse#sign

basic_response.sign(cert, key, certs = nil, flags = 0, digest = nil) → self

Signs this OCSP response using the cert, key and optional digest. This behaves in the similar way as OpenSSL::OCSP::Request#sign.

flags can include:

OpenSSL::OCSP::NOCERTS

don’t include certificates

OpenSSL::OCSP::NOTIME

don’t set producedAt

OpenSSL::OCSP::RESPID_KEY

use signer’s public key hash as responderID

See also #responses #status #initialize_copy #to_der also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1