From 80c39e13cee214faf11ddf78e511e83698d23542 Mon Sep 17 00:00:00 2001 From: Mark Kraus Date: Sat, 24 Feb 2018 13:39:30 -0600 Subject: [PATCH] Use TLS 1.2 in Start-PSBootStrap Without Breaking HTTPS --- build.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.psm1 b/build.psm1 index b27f2106ca6..50e0475e22d 100644 --- a/build.psm1 +++ b/build.psm1 @@ -1685,7 +1685,7 @@ function Start-PSBootstrap { New-Item -Path "~/.rcedit" -Type Directory -Force > $null ## need to specify TLS version 1.2 since GitHub API requires it - [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 + [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 Invoke-WebRequest -OutFile "~/.rcedit/rcedit-x64.exe" -Uri $rceditUrl }