From a57ed95fd30bfb8503a8d38260a5792e1639b1db Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Fri, 31 Aug 2018 11:20:58 -0700 Subject: [PATCH] Fix errors connecting to github from powershell and TLS1.2 in test scripts --- scripts/common.psm1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/common.psm1 b/scripts/common.psm1 index 97b5216f85..c7a59ee7df 100644 --- a/scripts/common.psm1 +++ b/scripts/common.psm1 @@ -1,4 +1,6 @@ $ErrorActionPreference = 'Stop' +# Update the default TLS support to 1.2 +[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 function Assert-Git { if (!(Get-Command git -ErrorAction Ignore)) {