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");
}
社会阅历和生活实践少了,容易钻入空洞和抽象理论的漩涡