启用 TLS 1.2 时无法协商 TLS 1.0

zur*_*aff 5 .net https webclient c#-4.0 tls1.2

以下代码:

using System.Net;

namespace HttpsClient
{
    class Program
    {
        static void Main(string[] args)
        {
            using (var client = new WebClient())
            {
                ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3
                                       | SecurityProtocolType.Tls
                                       | SecurityProtocolType.Tls11
                                       | SecurityProtocolType.Tls12;
                ServicePointManager.ServerCertificateValidationCallback
                    += (sender, certificate, chain, errors) => true;
                var str = client.DownloadString(
                    "https://ssb.unwsp.edu/pls/banprod/twbkwbis.P_WWWLogin");
            }
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

无法建立连接,它以 System.Net.WebException 结束请求被中止:无法创建 SSL/TLS 安全通道。

正如 Wireshark 捕获所示,服务器端拒绝使用 TLS 1.2 协议。

当ServicePointManager配置为仅使用Ssl3和Tls时,可以成功建立连接。

问题:

  1. WebClient 真的不支持从 TLS 1.2 到 TLS 1.0 的协议版本协商吗?
  2. 我可以以某种方式配置它以强制它协商 TLS 1.0 吗?

谢谢