Skip to content

Commit

Permalink
Merge pull request #68 from ccin2p3/feature/load_default_ca_certs
Browse files Browse the repository at this point in the history
[TLS] Always load system default C.A files
  • Loading branch information
martialblog committed Jan 22, 2021
2 parents cdb2474 + 63542f3 commit e3ac068
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions check_http_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ def main(cliargs):
context.verify_mode = ssl.CERT_NONE
else:
context.verify_mode = ssl.CERT_OPTIONAL
context.load_default_certs()
if args.cacert:
try:
context.load_verify_locations(args.cacert)
Expand Down

0 comments on commit e3ac068

Please sign in to comment.