From fb6ed15a535c482803eca4d99b8ba50273096de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Sat, 13 Apr 2024 01:12:09 +0200 Subject: [PATCH] [6.0] Force TLS1.2 in update-machine-certs.ps1 (#100987) 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()