8000 Ignore certificates on windows · aut-iot/arduino-esp32@0dcf5a4 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

tools/get.py

Lines changed: 4 additions & 1 deletion
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)
0