3

In .NET 4.0 and 4.5, the default value for ServicePointManager.SecurityProtocol was SecurityProtocolType.Tls|SecurityProtocolType.Ssl3 in .NET 4.0/4.5 according to this post.

What is the default value in .NET 4.6.1? I can't find it anywhere

Community
  • 1
  • 1
Alex Kibler
  • 4,674
  • 9
  • 44
  • 74

1 Answers1

5
static void Main(string[] args)
{
    Console.WriteLine(ServicePointManager.SecurityProtocol);
}

...on 4.6.1 gives the output...

Tls, Tls11, Tls12
Joachim Isaksson
  • 176,943
  • 25
  • 281
  • 294
  • Thanks so much! We've got some 4.5 apps that had issues when we turned off TLS1.0 support, so I was curious if upgrading to 4.6 would fix that or if I needed to set the securityprotocol type myself – Alex Kibler Feb 23 '16 at 19:54