SecurityProtocol 相关的软件列表

HttpClient 未能创建 SSL/TLS 安全通道
C#.net

HttpClient 未能创建 SSL/TLS 安全通道

2020-05-10 标签:HttpClient,未能,创建,SSL,TLS,安全,通道,SecurityProtocolType,ServicePointManager,如下,httpClient,https,delegate,return,true,SecurityProtocol,Ssl3

今天用httpClient进行获取https内容出错如下:HttpClient 未能创建 SSL/TLS 安全通道.应该是证书的问题.添加如下代码即可.ServicePointManager.ServerCertificateValidationCallback = delegate { retur