Skip to content
class method

OpenSSL::OCSP::CertificateId.new

(::String | ::OpenSSL::ASN1::_ToDer der) -> ::OpenSSL::OCSP::CertificateId
(::OpenSSL::X509::Certificate subject, ::OpenSSL::X509::Certificate issuer, ?::OpenSSL::Digest digest) -> ::OpenSSL::OCSP::CertificateId
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 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0