Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit e144461

Browse files
committed
Enable TLS 1.2 in build.ps1 (#352)
Progress on NuGet/NuGetGallery#5551
1 parent 6c62790 commit e144461

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

build.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ trap {
2626
if (-not (Test-Path "$PSScriptRoot/build")) {
2727
New-Item -Path "$PSScriptRoot/build" -ItemType "directory"
2828
}
29+
30+
# Enable TLS 1.2 since GitHub requires it.
31+
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
32+
2933
wget -UseBasicParsing -Uri "https://raw.githubusercontent.com/NuGet/ServerCommon/$BuildBranch/build/init.ps1" -OutFile "$PSScriptRoot/build/init.ps1"
3034
. "$PSScriptRoot/build/init.ps1" -BuildBranch "$BuildBranch"
3135

0 commit comments

Comments
 (0)