From ddcb106e62a1078f06e50b96f5c4a5c78b3a0a31 Mon Sep 17 00:00:00 2001 From: Joel Verhagen Date: Wed, 28 Feb 2018 17:59:49 -0800 Subject: [PATCH] Enable TLS 1.2 in build.ps1 (#58) Progress on https://github.com/NuGet/NuGetGallery/issues/5551 --- build.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.ps1 b/build.ps1 index 67d48e20..5dace8ec 100644 --- a/build.ps1 +++ b/build.ps1 @@ -24,6 +24,10 @@ trap { if (-not (Test-Path "$PSScriptRoot/build")) { New-Item -Path "$PSScriptRoot/build" -ItemType "directory" } + +# Enable TLS 1.2 since GitHub requires it. +[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 + wget -UseBasicParsing -Uri "https://raw.githubusercontent.com/NuGet/ServerCommon/$BuildBranch/build/init.ps1" -OutFile "$PSScriptRoot/build/init.ps1" . "$PSScriptRoot/build/init.ps1" -BuildBranch "$BuildBranch"