0

X86版本在64位操作系统支持HTTPS TLS v1.1/1.2 的代码

xmos
4月前 240

使用 ServicePointManager 指定 HTTPS 连接使用的安全协议 如图 :


请修改 ICE.Utility 下 WebUtility.cs 类中两个方法: GetHttpWebResponse 和 GetPostHttpWebResponse。

添加代码:

ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3
                | SecurityProtocolType.Tls
                | (SecurityProtocolType)0x300 //Tls11
                | (SecurityProtocolType)0xC00; //Tls12

保存后,请重新生成一次ICE.Utility 项目!!!


最新回复 (0)

    暂无评论

请先登录后发表评论!

返回
请先登录后发表评论!