Class: OpenSSL::OCSP::CertificateId
Relationships & Source Files | |
Inherits: | Object |
Defined in: | ext/openssl/ossl_ocsp.c |
Overview
An CertificateId
identifies a certificate to the CA so that a status check can be performed.
Class Method Summary
-
.new(subject, issuer, digest = nil) ⇒ certificate_id
constructor
Creates a new
CertificateId
for the givensubject
andissuer
::OpenSSL::X509 certificates.
Instance Method Summary
-
#cmp(other) ⇒ Boolean
Compares this certificate id with
other
and returns true if they are the same. -
#cmp_issuer(other) ⇒ Boolean
Compares this certificate id's issuer with
other
and returns true if they are the same. -
#get_serial ⇒ Integer
Returns the serial number of the issuing certificate.
Constructor Details
.new(subject, issuer, digest = nil) ⇒ certificate_id
Creates a new CertificateId
for the given subject
and issuer
::OpenSSL::X509 certificates. The digest
is used to compute the certificate ID and must be an ::OpenSSL::Digest instance.
Instance Method Details
#cmp(other) ⇒ Boolean
Compares this certificate id with other
and returns true if they are the same.
#cmp_issuer(other) ⇒ Boolean
Compares this certificate id's issuer with other
and returns true if they are the same.
#get_serial ⇒ Integer
Returns the serial number of the issuing certificate.