I have a same issue , After some windows 10 Enterprise 20H2 updates all my httpClient request are failing with
Authentication failed because the remote party sent a TLS alert: '112'.
Here is the sample i am trying on .net 6 Azure Function, Any help is appreciated.
var httpClientHandler = new HttpClientHandler
{
SslProtocols = System.Security.Authentication.SslProtocols.Tls12 | System.Security.Authentication.SslProtocols.Tls13 | System.Security.Authentication.SslProtocols.Tls11,
UseDefaultCredentials = true
};
using var client = new HttpClient(httpClientHandler);
client.Timeout = TimeSpan.FromSeconds(3000);
var msg = new HttpRequestMessage(HttpMethod.Get, uri);
var res = await client.SendAsync(msg);