Skip to content

Commit db2aabf

Browse files
authored
Use TLS 1.2 for bootstrapping dotnet in CI (#1047)
1 parent 6e85ec0 commit db2aabf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/appveyor.psm1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ function Invoke-AppVeyorInstall {
3030
$globalDotJson = Get-Content (Join-Path $PSScriptRoot '..\global.json') -Raw | ConvertFrom-Json
3131
$dotNetCoreSDKVersion = $globalDotJson.sdk.version
3232
if (-not ((dotnet --version).StartsWith($dotNetCoreSDKVersion))) {
33+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 # https://github.com/dotnet/announcements/issues/77
3334
Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -OutFile dotnet-install.ps1
3435
.\dotnet-install.ps1 -Version $dotNetCoreSDKVersion
3536
Remove-Item .\dotnet-install.ps1

0 commit comments

Comments
 (0)