Merge pull request #194 from nicolasnoble/tls12-for-nvm-master

Update Windows test to force using TLS/1.2
This commit is contained in:
Nicolas Noble 2018-02-26 13:44:09 -08:00 committed by GitHub
commit 16dacc000b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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