mirror of
https://github.com/drewkerrigan/nagios-http-json.git
synced 2024-12-22 09:03:57 +01:00
If TLS is enabled, context now loads the system default C.A files
* This allows system wide deployed C.A to be used without any further configuration.
This commit is contained in:
parent
cdb2474ee0
commit
63542f3226
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user