From 7f20b35435f9ae2a203909a757da7abe3db2dd21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Fri, 12 Apr 2024 20:28:08 +0200 Subject: [PATCH] [6.0] Force TLS1.2 in update-machine-certs.ps1 The Windows image enforces TLS1.2 now so we need to make sure we're using that in the powershell script too. --- eng/pipelines/mono/update-machine-certs.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/mono/update-machine-certs.ps1 b/eng/pipelines/mono/update-machine-certs.ps1 index 1a6be78b199470..12e3a4d305a720 100644 --- a/eng/pipelines/mono/update-machine-certs.ps1 +++ b/eng/pipelines/mono/update-machine-certs.ps1 @@ -5,7 +5,7 @@ Try { Try { $Stream = New-Object System.Net.Security.SslStream($Conn.GetStream()) - $Stream.AuthenticateAsClient($WebsiteURL) + $Stream.AuthenticateAsClient($WebsiteURL, $null, [System.Security.Authentication.SslProtocols]::Tls12, $true) $Cert = $Stream.Get_RemoteCertificate()