Class: CertificateAuthority::Extensions::CrlDistributionPoints

Inherits:
Object
  • Object
show all
Includes:
ExtensionAPI
Defined in:
lib/certificate_authority/extensions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCrlDistributionPoints

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

#uriObject

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_extensionsObject

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_identifierObject



58
59
60
# File 'lib/certificate_authority/extensions.rb', line 58

def openssl_identifier
  "crlDistributionPoints"
end

#to_sObject



72
73
74
75
# File 'lib/certificate_authority/extensions.rb', line 72

def to_s
  return "" if self.uri.nil?
  "URI:#{self.uri}"
end