.Net Framework 4.6.1 not defaulting to TLS 1.2

后端 未结 11 2169
暖寄归人
暖寄归人 2020-11-30 23:45

Our client have recently upgrade the security protocol to TLS 1.2. Therefore We have our application upgraded to 4.6.1 expecting the security protocol will be default to TLS

11条回答
  •  日久生厌
    2020-12-01 00:16

    I used this in my code on the initial page. The app is web forms in VB.NET with .NET Framework 4.6.1

    System.Net.ServicePointManager.SecurityProtocol =  System.Net.SecurityProtocolType.Tls12
    

提交回复
热议问题