两种方法:
1.在代码中修改
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;// SecurityProtocolType.Tls1.2;ServicePointManager.Security两种方法:
1.在代码中修改
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;// SecurityProtocolType.Tls1.2;ServicePointManager.Security