如何在请求中发送的服务器端检索客户端证书 [英] How to retrieve a client certificate on the server side sent with a request

查看:66
本文介绍了如何在请求中发送的服务器端检索客户端证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个向服务器页面发出请求的客户端应用程序.代码如下:

I have a client application which make a request to server page. Code below:

HttpWebRequest req = (HttpWebRequest)WebRequest.Create("https://testpage.aspx");
req.Method = "POST";
req.ClientCertificates.Add(clientcert);
req.ContentLength = 0;


testpage.aspx是Web服务器上的页面,需要获取与请求一起发送的证书(即clientcert),并针对活动目录中的另一个证书进行验证.

我尝试使用Request.ClientCertificate,但它为空.

请帮忙!谢谢!


testpage.aspx is a page on the web server and needs to get the certificate sent with the request (i.e. clientcert) and validate it against another one on the active directory.

I tried using Request.ClientCertificate but it is empty.

Please help! Thanks!

推荐答案

尝试此处提到的解决方案: http://support. microsoft.com/kb/823177 [ ^ ]
Try solution mentioned here : http://support.microsoft.com/kb/823177[^]


这篇关于如何在请求中发送的服务器端检索客户端证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆