.netasp.net-4.6

What is the default ServicePointManager.SecurityProtocol value in .NET 4.6.1?


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


Solution

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

    ...on 4.6.1 gives the output...

    Tls, Tls11, Tls12