Skip to content

Commit

Permalink
Fix CA configuration by environment variable
Browse files Browse the repository at this point in the history
The environment variable `SSL_CERT_DIR` is documented to configure an
alternative trust CA, but that wasn't used before; fixed.
  • Loading branch information
febeling committed Dec 28, 2018
1 parent 27fbb07 commit 86fcb4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/httpclient.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,9 @@ def load_environment
else
self.proxy = getenv('http_proxy')
end
if getenv('SSL_CERT_DIR')
self.ssl_config.add_trust_ca(getenv('SSL_CERT_DIR'))
end
# no_proxy
self.no_proxy = getenv('no_proxy')
end
Expand Down

0 comments on commit 86fcb4f

Please sign in to comment.