Use TLS 1.2 in devInstall script.

This commit is contained in:
Sergii Dymchenko 2018-04-19 11:48:28 -07:00
Родитель baf3c66d49
Коммит 401e511d52
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -125,6 +125,8 @@ function DownloadFileWebRequest (
[string] $userAgent,
[string] $expectedHash)
{
# Use TLS 1.2 because default TLS 1.0 isn't supported by GitHub now.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Write-Host "Downloading [$SourceFile], please be patient...."
if (-not $Execute) {
Write-Host "$message ** Running in DEMOMODE - no download performed"