Skip to content

Commit 1e99ee7

Browse files
committed
scripts: Enable TLS2 for GitHub downloads in PowerShell script
Avoid errors related to unsupported protocol.
1 parent 11fb9e3 commit 1e99ee7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/windows-download-cache-and-build-module-wheels.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
trap { Write-Error $_; Exit 1 }
2+
$AllProtocols = [System.Net.SecurityProtocolType]'Ssl3,Tls,Tls11,Tls12'
3+
[System.Net.ServicePointManager]::SecurityProtocol = $AllProtocols
24

35
set-alias sz "$env:ProgramFiles\7-Zip\7z.exe"
46
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/scikit-build/scikit-ci-addons/master/windows/install-python.ps1'))
@@ -7,8 +9,6 @@ Invoke-WebRequest -Uri "https://github.com/InsightSoftwareConsortium/ITKPythonBu
79
sz x ITKPythonBuilds-windows.zip -oC:\P -aoa -r
810
Invoke-WebRequest -Uri "http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.11.windows.bin.zip" -OutFile "doxygen-1.8.11.windows.bin.zip"
911
sz x doxygen-1.8.11.windows.bin.zip -oC:\P\doxygen -aoa -r
10-
$AllProtocols = [System.Net.SecurityProtocolType]'Ssl3,Tls,Tls11,Tls12'
11-
[System.Net.ServicePointManager]::SecurityProtocol = $AllProtocols
1212
Invoke-WebRequest -Uri "https://data.kitware.com/api/v1/file/5bbf87ba8d777f06b91f27d6/download/grep-win.zip" -OutFile "grep-win.zip"
1313
sz x grep-win.zip -oC:\P\grep -aoa -r
1414
$env:Path += ";C:\P\grep"

0 commit comments

Comments
 (0)