Re: SSL and X509Certificate info

From: Feroze [MSFT] (ferozed_at_online.microsoft.com)
Date: 04/23/04

  • Next message: Feroze [MSFT]: "Re: How to configure Proxy Settings for external objects"
    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
    >
    >
    

  • Next message: Feroze [MSFT]: "Re: How to configure Proxy Settings for external objects"

    Relevant Pages

    • Re: Cant get SSL to work locally
      ... SelfSSL just lowers the bar to enabling SSL on IIS (many people mistake ... needing Certificate Server or is just not possible "for free" with IIS). ... does not attempt to address the issue of trust. ...
      (microsoft.public.inetserver.iis.security)
    • Re: Problem processing SSL certificate response.
      ... "Download SSL Diagnostics 1.1 from Microsoft.com and use it to diagnose ... Note that I am able to work around this by requesting/processing a request ... transfering the generated PFX into the certificate store on the IIS machine. ...
      (microsoft.public.inetserver.iis.security)
    • Re: Switching from http to https
      ... the default website with SSL not enabled (using port 443) in the IIS. ... a certificate to the program. ...
      (microsoft.public.inetserver.iis.security)
    • Re: Cant create web applications
      ... I've managed to re create an autosigned certificate and assigned it to the web application from the IIS 7 manager (it was already created with SSL and has the link with https, I just modified the link to add the cert.), but when I try to access the site, after the certificate warning, I receive a 403-Forbidden error. ...
      (microsoft.public.sharepoint.windowsservices)
    • RE: netsh error - 1312
      ... I can issue a cert from the certsrv and make it work but ONLY if I log in as ... "there is no particular SSL certificate that can only be used ... IIS wizard provide a very convenient GUI for us to generate request. ...
      (microsoft.public.dotnet.framework.webservices)

  • Quantcast