Skip to main content
added 1 character in body
Source Link
TylerH
  • 21.3k
  • 84
  • 84
  • 121

The solution to this, in .NET 4.55+ is

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; 

If you don’t have .NET 4.5 then use

ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072; 

The solution to this, in .NET 4.5 is

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; 

If you don’t have .NET 4.5 then use

ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072; 

The solution to this, in .NET 4.5+ is

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; 

If you don’t have .NET 4.5 then use

ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072; 
Source Link
Andrej Z
  • 2.8k
  • 1
  • 10
  • 2

The solution to this, in .NET 4.5 is

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; 

If you don’t have .NET 4.5 then use

ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;