summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@qt.io>2018-06-13 11:35:09 +0200
committerLiang Qi <liang.qi@qt.io>2018-06-13 18:08:15 +0000
commitbd8fe6a46340097b8652285fe05ff4a8c60c141e (patch)
treea491d070f1c8f651474a0c2551f0d5b44448683e
parentbfda8d1f253d0282f48d7cb6b4a5046dc973bf32 (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>
-rw-r--r--coin/provisioning/common/windows/helpers.ps11
1 files changed, 1 insertions, 0 deletions
diff --git a/coin/provisioning/common/windows/helpers.ps1 b/coin/provisioning/common/windows/helpers.ps1
index 28ccaeaf..794f1b5d 100644
--- a/coin/provisioning/common/windows/helpers.ps1
+++ b/coin/provisioning/common/windows/helpers.ps1
@@ -87,6 +87,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")) {