HttpWebRequest使用证书请求

HttpWebRequest使用证书请求

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

原文地址:https://www.cnblogs.com/DTWolf/p/4597799.html