Skip to content

Commit 20fb09b

Browse files
authored
remove certificate check
makes issues on MAC
1 parent 89fe674 commit 20fb09b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/idf_tools.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,8 @@ def download(url, destination): # type: (str, str) -> Optional[Exception]
478478
# This works around the issue with outdated certificate stores in some installations.
479479
if site in url:
480480
ctx = ssl.create_default_context()
481+
ctx.check_hostname = False
482+
ctx.verify_mode = ssl.CERT_NONE
481483
ctx.load_verify_locations(cadata=cert)
482484
break
483485
else:

0 commit comments

Comments
 (0)