mirror of
https://github.com/drewkerrigan/nagios-http-json.git
synced 2026-02-05 14:45:17 +01:00
Merge pull request #68 from ccin2p3/feature/load_default_ca_certs
[TLS] Always load system default C.A files
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user