From 739c093702678f6e6002f7c3f6306c19b361d185 Mon Sep 17 00:00:00 2001 From: Markus Hof Date: Tue, 4 Oct 2022 16:04:12 +0200 Subject: [PATCH] disabled check_hostname to prevent error message when setting CERT_NONE --- check_http_json.py | 1 + 1 file changed, 1 insertion(+) diff --git a/check_http_json.py b/check_http_json.py index b8d2afb..3eb7c50 100755 --- a/check_http_json.py +++ b/check_http_json.py @@ -549,6 +549,7 @@ def main(cliargs): context.options |= ssl.OP_NO_SSLv3 if args.insecure: + context.check_hostname = False context.verify_mode = ssl.CERT_NONE else: context.verify_mode = ssl.CERT_OPTIONAL