diff options
author | thekuwayama <thekuwayama@gmail.com> | 2019-11-18 22:33:55 +0900 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2019-11-19 18:11:11 +0900 |
commit | 3183cd701783cf603f96f54bb08cea714b755a23 (patch) | |
tree | b7cd855c1e39a3691b534813dcc87da2c85815e6 /lib | |
parent | dad064cfcebb25f76df0aafeb17ba746a6a6b1a2 (diff) | |
download | ruby-openssl-3183cd701783cf603f96f54bb08cea714b755a23.tar.gz |
add/update document about AuthorityInfoAccess
add ca_issuer_uris and ocsp_uris description to the changelog
Diffstat (limited to 'lib')
-rw-r--r-- | lib/openssl/x509.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/openssl/x509.rb b/lib/openssl/x509.rb index 8ef55925..4877e05a 100644 --- a/lib/openssl/x509.rb +++ b/lib/openssl/x509.rb @@ -168,6 +168,11 @@ module OpenSSL module AuthorityInfoAccess include Helpers + # 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. def ca_issuer_uris aia_asn1 = parse_aia_asn1 return nil if aia_asn1.nil? @@ -183,6 +188,10 @@ module OpenSSL ca_issuer&.map(&:value)&.map(&:last)&.map(&:value) end + # 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. def ocsp_uris aia_asn1 = parse_aia_asn1 return nil if aia_asn1.nil? |