Enforce TLS 1.2 for PowerShell downloader
https://github.com/blog/2507-weak-cryptographic-standards-removed
This commit is contained in:
parent
cc44d42ff6
commit
931a68e56f
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ if "x%HTTP_CLIENT%" == "x" goto TRY_POWERSHELL
|
||||||
call powershell -? >nul 2>&1
|
call powershell -? >nul 2>&1
|
||||||
if NOT ERRORLEVEL 0 goto TRY_WGET
|
if NOT ERRORLEVEL 0 goto TRY_WGET
|
||||||
set LAST_HTTP_CLIENT=powershell
|
set LAST_HTTP_CLIENT=powershell
|
||||||
powershell -Command "& {param($a,$f) $client = New-Object System.Net.WebClient; $client.Proxy.Credentials =[System.Net.CredentialCache]::DefaultNetworkCredentials; $client.DownloadFile($a, $f)}" ""%2"" ""%1""
|
powershell -Command "& {param($a,$f) $client = New-Object System.Net.WebClient; [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $client.Proxy.Credentials =[System.Net.CredentialCache]::DefaultNetworkCredentials; $client.DownloadFile($a, $f)}" ""%2"" ""%1""
|
||||||
SET RC=%ERRORLEVEL%
|
SET RC=%ERRORLEVEL%
|
||||||
goto EXITRC
|
goto EXITRC
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue