HttpWebRequest使用证书请求

 //是否使用证书
                if (isUseCert)
                {
                    string path = HttpContext.Current.Request.PhysicalApplicationPath;
                    X509Certificate2 cert = new X509Certificate2(path);
                    request.ClientCertificates.Add(cert);
                    Log.Debug("req", "PostXml used cert");
                }

相关文章:

  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2021-10-09
  • 2022-03-06
相关资源
相似解决方案