class OpenSSL::OCSP::CertificateId
An OpenSSL::OCSP::CertificateId identifies a certificate to the CA so that a status check can be performed.
Public Class Methods
(String | ASN1::_ToDer der) → void
(X509::Certificate subject, X509::Certificate issuer, ?Digest digest) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 4786
def initialize: (String | ASN1::_ToDer der) -> void
| (X509::Certificate subject, X509::Certificate issuer, ?Digest digest) -> void
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.
Public Instance Methods
(self other) → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 4715
def cmp: (self other) -> bool
Compares this certificate id with other and returns true if they are the same.
(self other) → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 4724
def cmp_issuer: (self other) -> bool
Compares this certificate id’s issuer with other and returns true if they are the same.
() → String
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 4733
def hash_algorithm: () -> String
Returns the ln (long name) of the hash algorithm used to generate the issuerNameHash and the issuerKeyHash values.
(self) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 4794
def initialize_copy: (self) -> void
() → String
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 4742
def issuer_key_hash: () -> String
Returns the issuerKeyHash of this certificate ID, the hash of the issuer’s public key.
() → String
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 4751
def issuer_name_hash: () -> String
Returns the issuerNameHash of this certificate ID, the hash of the issuer’s distinguished name calculated with the hashAlgorithm.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 4760
def serial: () -> Integer
Returns the serial number of the certificate for which status is being requested.