//解决方法://引入命名空间:usingSystem.Security.Cryptography.X509Certificates;usingSystem.Net.Security;//定义方法:privatestaticboolRemoteCertificateValidate(objectsender,X509Certificatecert,X509Chainchain,SslPolicyErrorserror){//为了通过证书验证,总是返回truereturntrue;...
查看全文