From b8fc270fc1519bf53f7b6edf8a6cec1109cae7c4 Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Fri, 23 Feb 2018 12:24:22 -0800 Subject: [PATCH] Update Windows test to force using TLS/1.2 https://githubengineering.com/crypto-removal-notice/ broke the windows test. Forcing Powershell to update to TLS/1.2. --- install-nvm-windows.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install-nvm-windows.ps1 b/install-nvm-windows.ps1 index 709a1ec2..b3794055 100644 --- a/install-nvm-windows.ps1 +++ b/install-nvm-windows.ps1 @@ -15,6 +15,9 @@ # We're going to store nvm-windows in the .\nvm directory. $env:NVM_HOME = (Get-Item -Path ".\" -Verbose).FullName + "\nvm" +# Switching to TLS/1.2 - see https://githubengineering.com/crypto-removal-notice/ +[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 + # Downloading and unpacking nvm-windows Invoke-WebRequest -Uri https://github.com/coreybutler/nvm-windows/releases/download/1.1.5/nvm-noinstall.zip -OutFile nvm-noinstall.zip Add-Type -AssemblyName System.IO.Compression.FileSystem