Re: SSL and X509Certificate info
From: Feroze [MSFT] (ferozed_at_online.microsoft.com)
Date: 04/23/04
- Previous message: Scott: "wsdl.exe /server and fault elements"
- In reply to: Aras Kucinskas: "SSL and X509Certificate info"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 23 Apr 2004 13:50:21 -0700
I am assuming that you want to get the server certificate ?
If you are using HttpWebRequest to connect to IIS, then you can create an
implementation of System.Net.ICertificatePolicy, and assign it to
ServicePointManager.CertificatePolicy. Then, when the SSL handshake is done,
you will get a callback on the interface. One of the parameters there will
be the X509Certificate of the server.
-- feroze http://weblogs.asp.net/feroze_daud ============ Remove "user" from the email address to reply to the author. This posting is provided "AS IS" with no warranties, and confers no rights Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm "Aras Kucinskas" <arasas@mail.lt> wrote in message news:uTE8UcTKEHA.3216@tk2msftngp13.phx.gbl... > Hi all, > > > > I have developed WinForm application that connects to IIS thru SSL. Is it > possible to retrieve some informtion from certificate and display it in > Windows form? In MSDN documentation I find some info about X509Certificate > class. This class provides information about certificates collection. How > determine a current certificate that is used to establish connetion over SSL > to IIS? > > > > Thanks for future information > >
- Previous message: Scott: "wsdl.exe /server and fault elements"
- In reply to: Aras Kucinskas: "SSL and X509Certificate info"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|