c# make sure TLS 1.2 is used code example
Example: Net.ServicePointManager.SecurityProtocol .net framework 4
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;