diff options
author | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2018-06-13 11:35:09 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-09-17 07:28:36 +0000 |
commit | 08eceb86811d47627e5506a2ee2406e8992243ff (patch) | |
tree | 6bafd36f46b5c6700b397b4844e94f1631db15af | |
parent | 24f5ef51db9649da6857586e361e196d596151c8 (diff) |
Provisioning: Fix downloading from github
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 <tony.sarajarvi@qt.io>
Reviewed-by: Aapo Keskimolo <aapo.keskimolo@qt.io>
(cherry picked from commit bd8fe6a46340097b8652285fe05ff4a8c60c141e)
Reviewed-by: Liang Qi <liang.qi@qt.io>
-rw-r--r-- | coin/provisioning/common/windows/helpers.ps1 | 1 |
1 files changed, 1 insertions, 0 deletions
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")) { |