From 3d71971ce77f1e397830ff2156fb97a010df506b Mon Sep 17 00:00:00 2001 From: DirtySmurf <17131619+DirtySmurf@users.noreply.github.com> Date: Mon, 26 Feb 2018 14:09:41 -0600 Subject: [PATCH] Get-RemoteFile TLS update Invoke-WebRequest to github was requiring TLS 1.2 --- templates/bootstrap.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/bootstrap.ps1 b/templates/bootstrap.ps1 index 72ae671..fdc2c3f 100644 --- a/templates/bootstrap.ps1 +++ b/templates/bootstrap.ps1 @@ -9,6 +9,7 @@ function Get-RemoteFile([string]$RemotePath, [string]$LocalPath) { while ($retries -gt 0) { $retries -= 1 try { + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Invoke-WebRequest -UseBasicParsing -Uri $RemotePath -OutFile $LocalPath return $LocalPath