Преглед изворни кода

Force Download-File function to use TLS 1.2

Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
Olli Janatuinen пре 4 година
родитељ
комит
88126e84a5
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      Dockerfile.windows

+ 1 - 0
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); `
     } `