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

Class Method Summary collapse

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

Class Method Details

.load_file(path) ⇒ Object



360
361
362
# File 'lib/openssl/x509.rb', line 360

def self.load_file(path)
  load(File.binread(path))
end

Instance Method Details

#pretty_print(q) ⇒ Object



349
350
351
352
353
354
355
356
357
358
# File 'lib/openssl/x509.rb', line 349

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