Class: OpenSSL::X509::Certificate

Inherits:
Object
  • Object
show all
Includes:
Marshal, Extension::AuthorityInfoAccess, Extension::AuthorityKeyIdentifier, Extension::CRLDistributionPoints, Extension::SubjectKeyIdentifier
Defined in:
lib/openssl/x509.rb

Instance Method Summary collapse

Methods included from Extension::AuthorityInfoAccess

#ca_issuer_uris, #ocsp_uris

Methods included from Extension::Helpers

#find_extension

Methods included from Extension::CRLDistributionPoints

#crl_uris

Methods included from Extension::AuthorityKeyIdentifier

#authority_key_identifier

Methods included from Extension::SubjectKeyIdentifier

#subject_key_identifier

Methods included from Marshal

#_dump, included

Instance Method Details

#pretty_print(q) ⇒ Object



331
332
333
334
335
336
337
338
339
340
# File 'lib/openssl/x509.rb', line 331

def pretty_print(q)
  q.object_group(self) {
    q.breakable
    q.text 'subject='; q.pp self.subject; q.text ','; q.breakable
    q.text 'issuer='; q.pp self.issuer; q.text ','; q.breakable
    q.text 'serial='; q.pp self.serial; q.text ','; q.breakable
    q.text 'not_before='; q.pp self.not_before; q.text ','; q.breakable
    q.text 'not_after='; q.pp self.not_after
  }
end