HttpClient fails to establish SSL connection with server configured with RSA 4096 key.

Rajeev Pradhan 0 Reputation points
2023-01-30T07:53:05.98+00:00

I am using .net framework 4.7 in WinForms application and using HttpClient for SSO login, When I call server url with using HttpClient then initial handshaking fails with following error.

The request was aborted: Could not create SSL/TLS secure channel.

It seems .net supports RSA 2048 key but not the RSA 4096 key.

I have already tried by setting TLS1.2 as ServiceProtocol, but same error.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,153 questions
{count} votes