Skip to content

Commit 0dcf5a4

Browse files
whatnickme-no-dev
authored andcommitted
Ignore certificates on windows
Added code to bypass certificate verification. merge with caution.
1 parent 9f9fb41 commit 0dcf5a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: tools/get.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,12 @@ def get_tool(tool):
7070
local_path = dist_dir + archive_name
7171
url = tool['url']
7272
#real_hash = tool['checksum'].split(':')[1]
73+
ctx = ssl.create_default_context()
74+
ctx.check_hostname = False
75+
ctx.verify_mode = ssl.CERT_NONE
7376
if not os.path.isfile(local_path):
7477
print('Downloading ' + archive_name);
75-
urlretrieve(url, local_path, report_progress)
78+
urlretrieve(url, local_path, report_progress,context=ctx)
7679
sys.stdout.write("\rDone\n")
7780
sys.stdout.flush()
7881
else:

0 commit comments

Comments
 (0)