首页 > Web开发 > 详细

HttpWebRequest使用证书请求

时间:2015-06-24 16:16:58      阅读:301      评论:0      收藏:0      [点我收藏+]

HttpWebRequest使用证书请求

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

HttpWebRequest使用证书请求

原文:http://www.cnblogs.com/DTWolf/p/4597799.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!