I want to lock down my Webapi to TLSv1.2 so TLSv1.1 is disallowed etc. I saw the following post but it seems it's only relevant to asp.net core: Any way to restrict ASP.NET Core 2.0 HTTPS to TLS 1.2?
Any ideas how I can do this? I intitially had this code :
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3; // only allow TLSV1.2 and SSL3
But was unsure if this was the correct approach and whether it applies to just client connections.
Any ideas?