Skip to content

Commit

Permalink
Merge pull request #182 from cxcv/master
Browse files Browse the repository at this point in the history
pass ca_trust_path to requests module
  • Loading branch information
nitzmahone authored Dec 2, 2017
2 parents f2fae36 + 2b8d0b0 commit b188c66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions winrm/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ def build_session(self):
session = requests.Session()

session.verify = self.server_cert_validation == 'validate'
if session.verify and self.ca_trust_path:
session.verify = self.ca_trust_path

# configure proxies from HTTP/HTTPS_PROXY envvars
session.trust_env = True
Expand Down

0 comments on commit b188c66

Please sign in to comment.