Class: Ronin::DB::CertIssuer
- Inherits:
-
CertOrganization
- Object
- ActiveRecord::Base
- CertOrganization
- Ronin::DB::CertIssuer
- Defined in:
- lib/ronin/db/cert_issuer.rb
Overview
Represents the issuer of a SSL/TLS certificate.
Constant Summary
Constants inherited from CertOrganization
Ronin::DB::CertOrganization::X509_ATTRIBUTES
Instance Attribute Summary collapse
-
#certs ⇒ Array<Cert>
The certificates that share this issuer information.
-
#common_name ⇒ String?
The issuer's common name (
CN
).
Attributes inherited from CertOrganization
#country, #created_at, #id, #locality, #organization, #organizational_unit, #state
Class Method Summary collapse
-
.import(name) ⇒ CertIssuer
private
Imports the certificate issuer's X509 distinguished name.
Methods inherited from CertOrganization
Methods included from Model
Instance Attribute Details
#certs ⇒ Array<Cert>
The certificates that share this issuer information.
56 57 |
# File 'lib/ronin/db/cert_issuer.rb', line 56 has_many :certs, foreign_key: :issuer_id, dependent: :destroy |
#common_name ⇒ String?
Note:
Some Equifax certs do not set the issuer's common name (CN),
so #common_name may sometimes return nil
.
The issuer's common name (CN
).
40 |
# File 'lib/ronin/db/cert_issuer.rb', line 40 attribute :common_name, :string |
Class Method Details
.import(name) ⇒ CertIssuer
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Imports the certificate issuer's X509 distinguished name.
70 71 72 |
# File 'lib/ronin/db/cert_issuer.rb', line 70 def self.import(name) find_or_create_by(parse(name)) end |