与访问HTTP网站不同的是需要加 

ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(CheckValidationResult);

 

 private static bool CheckValidationResult(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors)
        {
            return true;
        }

相关文章:

  • 2021-06-16
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
  • 2021-10-25
  • 2021-08-29
  • 2021-12-24
  • 2021-11-08
猜你喜欢
  • 2022-01-07
  • 2022-12-23
  • 2021-11-10
  • 2021-07-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案