Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously if you set `SSL_CERT_FILE` to a directory with no certs, this script would fail: ```ruby require 'openssl' require 'excon' ENV['SSL_CERT_DIR'] = '/path/to/no/ssl/certs/' excon = Excon.new('https://www.google.com') excon.get ``` However, the same script with `Net::HTTP` works fine: ```ruby require 'openssl' require 'net/http' ENV['SSL_CERT_DIR'] = '/path/to/no/ssl/certs/' Net::HTTP.get(URI('https://www.google.com')) ``` To match the behavior of Net::HTTP, always call `OpenSSL::X509::Store#set_default_paths` unless there is a store specified.
- Loading branch information