Module: OpenSSL::X509::Extension::AuthorityInfoAccess
Instance Method Summary collapse
-
#ca_issuer_uris ⇒ Object
Get the information and services for the issuer from the certificate’s authority information access extension exteension, as described in RFC5280 Section 4.2.2.1.
-
#ocsp_uris ⇒ Object
Get the URIs for OCSP from the certificate’s authority information access extension exteension, as described in RFC5280 Section 4.2.2.1.
Methods included from Helpers
Instance Method Details
#ca_issuer_uris ⇒ Object
Get the information and services for the issuer from the certificate’s authority information access extension exteension, as described in RFC5280 Section 4.2.2.1.
Returns an array of strings or nil or raises ASN1::ASN1Error.
162 163 164 165 166 167 168 169 170 171 |
# File 'lib/openssl/x509.rb', line 162 def ca_issuer_uris aia_asn1 = parse_aia_asn1 return nil if aia_asn1.nil? ca_issuer = aia_asn1.value.select do || .value.first.value == "caIssuers" end ca_issuer&.map(&:value)&.map(&:last)&.map(&:value) end |
#ocsp_uris ⇒ Object
Get the URIs for OCSP from the certificate’s authority information access extension exteension, as described in RFC5280 Section 4.2.2.1.
Returns an array of strings or nil or raises ASN1::ASN1Error.
177 178 179 180 181 182 183 184 185 186 |
# File 'lib/openssl/x509.rb', line 177 def ocsp_uris aia_asn1 = parse_aia_asn1 return nil if aia_asn1.nil? ocsp = aia_asn1.value.select do || .value.first.value == "OCSP" end ocsp&.map(&:value)&.map(&:last)&.map(&:value) end |