Default SecurityProtocol in .NET 4.5

前端 未结 17 1365
一生所求
一生所求 2020-11-22 03:24

What is the default security protocol for communicating with servers that support up to TLS 1.2? Will .NET by default, choose the highest security

17条回答
  •  孤独总比滥情好
    2020-11-22 04:03

    I have found that when I specify only TLS 1.2 that it will still down negotiate to 1.1. System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

    I have specified this in the Global.asax startup method for my .net 4.5 web app.

提交回复
热议问题