Class: CertificateAuthority::Extensions::CrlDistributionPoints
- Inherits:
-
Object
- Object
- CertificateAuthority::Extensions::CrlDistributionPoints
- Includes:
- ExtensionAPI
- Defined in:
- lib/certificate_authority/extensions.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#config_extensions ⇒ Object
NB: At this time it seems OpenSSL’s extension handlers don’t support any of the config options the docs claim to support…
-
#initialize ⇒ CrlDistributionPoints
constructor
A new instance of CrlDistributionPoints.
- #openssl_identifier ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ CrlDistributionPoints
Returns a new instance of CrlDistributionPoints.
54 55 56 |
# File 'lib/certificate_authority/extensions.rb', line 54 def initialize # self.uri = "http://moo.crlendPoint.example.com/something.crl" end |
Instance Attribute Details
#uri ⇒ Object
Returns the value of attribute uri.
52 53 54 |
# File 'lib/certificate_authority/extensions.rb', line 52 def uri @uri end |
Instance Method Details
#config_extensions ⇒ Object
NB: At this time it seems OpenSSL’s extension handlers don’t support any of the config options the docs claim to support… everything comes back “missing value” on GENERAL NAME. Even if copied verbatim
65 66 67 68 69 70 |
# File 'lib/certificate_authority/extensions.rb', line 65 def config_extensions { # "custom_crl_fields" => {"fullname" => "URI:#{fullname}"}, # "issuer_sect" => {"CN" => "crlissuer.com", "C" => "US", "O" => "shudder"} } end |
#openssl_identifier ⇒ Object
58 59 60 |
# File 'lib/certificate_authority/extensions.rb', line 58 def openssl_identifier "crlDistributionPoints" end |
#to_s ⇒ Object
72 73 74 75 |
# File 'lib/certificate_authority/extensions.rb', line 72 def to_s return "" if self.uri.nil? "URI:#{self.uri}" end |