From 88126e84a5e356fa9dcda4c71f8eb919e59adfc0 Mon Sep 17 00:00:00 2001 From: Olli Janatuinen Date: Sun, 20 Sep 2020 14:37:56 +0300 Subject: [PATCH] Force Download-File function to use TLS 1.2 Signed-off-by: Olli Janatuinen --- Dockerfile.windows | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile.windows b/Dockerfile.windows index 655e33a358..fa73c52a72 100644 --- a/Dockerfile.windows +++ b/Dockerfile.windows @@ -205,6 +205,7 @@ RUN ` Throw ("Failed to download " + $source) ` }` } else { ` + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ` $webClient = New-Object System.Net.WebClient; ` $webClient.DownloadFile($source, $target); ` } `