.NET 5 has breaking changes with TLS. So when I'm connecting to a website (via HttpClient
) and it does not support TLS 1.3 (which is the default for .NET5), I get the following error: Interop+Crypto+OpenSslCryptographicException: error:1414D172:SSL routines:tls12_check_peer_sigalg:wrong signature type.
I wonder if I will BITOR the ServicePointManager.SecurityProtocol: ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls13 | SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
will it resolve to giving the webserver the correct cipher suites?