Re: Examining server certificates using HttpWebRequest/HttpWebResponse
From: Adarsh Khare [ MS ] (adarshk_at_microsoft.com)
Date: 07/14/04
- Next message: SA: "Re: Relationship between an assembly's name vs its filename"
- Previous message: Rob Teixeira [MVP]: "Re: Passing LPVOID between managed to unmanaged code"
- In reply to: Nebraska: "Examining server certificates using HttpWebRequest/HttpWebResponse"
- Next in thread: Nebraska: "Re: Examining server certificates using HttpWebRequest/HttpWebResp"
- Reply: Nebraska: "Re: Examining server certificates using HttpWebRequest/HttpWebResp"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 14 Jul 2004 16:00:04 -0700
Currently there is no straight forward way in HttpWebResponse.
But there is a workaround to examine server certificate, you need to
implement your ICertificatePolicy interface and set the
ServicePointManager.CertifcatePolicy, your check validation method would be
invoked with the request and corresponding X509Certificate.
adarshk
===========================
This posting is provided as-is. It provides no guarantees and confers no
rights
"Nebraska" <Nebraska@discussions.microsoft.com> wrote in message
news:7569BEFD-BAB8-4242-8821-8909CB8A1E8F@microsoft.com...
> I see that it is possible to examine client certificates using
HttpWebRequest class. Is there any way to see server side certificates in a
similar manner - assuming a successfully authenticated HTTPS
request/response? I notice there is no certificate collection in the
HttpWebResponse class.
- Next message: SA: "Re: Relationship between an assembly's name vs its filename"
- Previous message: Rob Teixeira [MVP]: "Re: Passing LPVOID between managed to unmanaged code"
- In reply to: Nebraska: "Examining server certificates using HttpWebRequest/HttpWebResponse"
- Next in thread: Nebraska: "Re: Examining server certificates using HttpWebRequest/HttpWebResp"
- Reply: Nebraska: "Re: Examining server certificates using HttpWebRequest/HttpWebResp"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|