From 2d60b5ff53b693d72d5265122bfaf34841b6af3f Mon Sep 17 00:00:00 2001 From: Tisham Dhar Date: Mon, 17 Oct 2016 12:20:15 +1030 Subject: [PATCH] Ignore certificates on windows Added code to bypass certificate verification. merge with caution. --- tools/get.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/get.py b/tools/get.py index 80bcb227eb9..dcce8fa346a 100755 --- a/tools/get.py +++ b/tools/get.py @@ -70,9 +70,12 @@ def get_tool(tool): local_path = dist_dir + archive_name url = tool['url'] #real_hash = tool['checksum'].split(':')[1] + ctx = ssl.create_default_context() + ctx.check_hostname = False + ctx.verify_mode = ssl.CERT_NONE if not os.path.isfile(local_path): print('Downloading ' + archive_name); - urlretrieve(url, local_path, report_progress) + urlretrieve(url, local_path, report_progress,context=ctx) sys.stdout.write("\rDone\n") sys.stdout.flush() else: