Skip to content

Commit

Permalink
[6.0] Force TLS1.2 in update-machine-certs.ps1 (#100987)
Browse files Browse the repository at this point in the history
The Windows image enforces TLS1.2 now so we need to make sure we're using that in the powershell script too.
  • Loading branch information
akoeplinger authored Apr 12, 2024
1 parent 1da4d8f commit fb6ed15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/pipelines/mono/update-machine-certs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit fb6ed15

Please sign in to comment.