class SSLyze::X509::Extensions::CRLDistributionPoints

Represents the `crlDistributionPoints` X509v3 extension.

@since 1.0.0

Public Instance Methods

each(&block) click to toggle source

Enumerates over each {#uris uri} value within the `crlDistributionPoiints` extension.

@yield [uri]

The given block will be passed each CRL URI.

@yieldparam [URI::Generic] uri

A parsed `URI:` value from within the extension value.

@return [Enumerator]

If no block is given, an Enumerator will be returned.
# File lib/sslyze/x509/extensions/crl_distribution_points.rb, line 40
def each(&block)
  uris.each(&block)
end
uris() click to toggle source

All `URI:` values.

@return [Array<URI::Generic>]

All parsed `URI:` values from within the extension value.
# File lib/sslyze/x509/extensions/crl_distribution_points.rb, line 23
def uris
  @uris ||= value.scan(/URI:(.+)/).map { |(uri)| URI.parse(uri) }
end