How is ServicePointManager.SecurityProtocol value set in Rest calls
I have an existing dotnet 4.7.1 application running on Windows server 2012 R2 which is making Rest calls and its working fine.
We are migrating to Windows server 2019, the same application is failing at Rest calls with error The request was aborted: Could not create SSL/TLS secure channel.
When I use ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
before the rest call it works fine. I logged ServicePointManager.SecurityProtocol
on both the servers as well as my local machine Windows 11 Enterprise 22H2, it gives following output.