Skip to content

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

class method

OpenSSL::OCSP::CertificateId.new

OpenSSL::OCSP::CertificateId.new(subject, issuer, digest = nil) → certificate_id
OpenSSL::OCSP::CertificateId.new(der_string) → certificate_id
OpenSSL::OCSP::CertificateId.new(obj) → certificate_id

Creates a new OpenSSL::OCSP::CertificateId for the given subject and issuer X509 certificates. The digest is a digest algorithm that is used to compute the hash values. This defaults to SHA-1.

If only one argument is given, decodes it as DER representation of a certificate ID or generates certificate ID from the object that responds to the to_der method.

See also #cmp #cmp_issuer also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0