Skip to content

Commit c211238

Browse files
committed
Fix TLS errors when downloading stage0
1 parent 775eab5 commit c211238

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/bootstrap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def _download(path, url, probably_big, verbose, exception):
7979
# see http://serverfault.com/questions/301128/how-to-download
8080
if sys.platform == 'win32':
8181
run(["PowerShell.exe", "/nologo", "-Command",
82-
"(New-Object System.Net.WebClient)"
83-
".DownloadFile('{}', '{}')".format(url, path)],
82+
"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;",
83+
"(New-Object System.Net.WebClient).DownloadFile('{}', '{}')".format(url, path)],
8484
verbose=verbose,
8585
exception=exception)
8686
else:

0 commit comments

Comments
 (0)