I need to force the usage of TLS 1.2 in SQLCLR assembly which is installed on SQL Server 2008 R2. I have read the answer explaining how to enable TLS 1.2 programatically.
Unfortunately, adding System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolTypeExtensions.Tls12; causes the error The requested security protocol is not supported, even though the Windows Server (2008 R2) is up-to-date (so mentioned Microsoft's hotfix is included).
Does anybody use the same approach in SQLCLR assembly? Is there any other way to support TLS 1.2 in such assembly?
The target framework of the assembly is set to: .NET Framework 3.5