Skip to content

Commit

Permalink
Enable TLS 1.2 in build.ps1 (#5563)
Browse files Browse the repository at this point in the history
Progress on #5551
  • Loading branch information
joelverhagen committed Mar 1, 2018
1 parent bcfe2bd commit 04c9828
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ trap {
if (-not (Test-Path "$PSScriptRoot/build")) {
New-Item -Path "$PSScriptRoot/build" -ItemType "directory"
}

# Enable TLS 1.2 since GitHub requires it.
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12

wget -UseBasicParsing -Uri "https://raw.githubusercontent.com/NuGet/ServerCommon/$BuildBranch/build/init.ps1" -OutFile "$PSScriptRoot/build/init.ps1"
. "$PSScriptRoot/build/init.ps1" -BuildBranch "$BuildBranch"

Expand Down

0 comments on commit 04c9828

Please sign in to comment.