From 08eceb86811d47627e5506a2ee2406e8992243ff Mon Sep 17 00:00:00 2001 From: Maurice Kalinowski Date: Wed, 13 Jun 2018 11:35:09 +0200 Subject: Provisioning: Fix downloading from github MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Invoke-WebRequest uses TLS1.0 by default, which is not accepted by Github anymore, causing all downloads from that site to fail. Upgrade to 1.2 to get downloads working again. Change-Id: Ie242432937c273db5c345b38482dd74c19c3b4ca Reviewed-by: Tony Sarajärvi Reviewed-by: Aapo Keskimolo (cherry picked from commit bd8fe6a46340097b8652285fe05ff4a8c60c141e) Reviewed-by: Liang Qi --- coin/provisioning/common/windows/helpers.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/coin/provisioning/common/windows/helpers.ps1 b/coin/provisioning/common/windows/helpers.ps1 index e326c293..71a63217 100644 --- a/coin/provisioning/common/windows/helpers.ps1 +++ b/coin/provisioning/common/windows/helpers.ps1 @@ -112,6 +112,7 @@ function Download [string] $Destination = $(BadParam("a download target location")) ) $ProgressPreference = 'SilentlyContinue' + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 try { Write-Host "Downloading from cached location ($CachedUrl) to $Destination" if ($CachedUrl.StartsWith("http")) { -- cgit v1.2.3