none
Using Client Certificates RRS feed

  • Question

  •  I need to authenticate user credentials (on a button click). I need to read the  certificate subject present in the user's browser. I am using the "HttpClientCertificate" class.

    I have installed the client certificate in my browser (I can see it in the "Personal" folder). When I make a request to the login page, first the server certificate pops up, then a dialog pops up asking me to choose from a list of client certificates, but the list is empty (I cannot see the certificate I have installed). I observe that "certificate.IsPresent" returns false.

     

    protected void btnLogin_Click(object sender, EventArgs e)

    {

    HttpClientCertificate certificate = HttpContext.Current.Request.ClientCertificate;

    if (certificate.IsPresent)

    {

    //Read the certificate and authenticate the user

    }

    }

    Additional Info:

    The server has a server certificate, and uses SSL. The server certificate pops up before the page is loaded. Server runs on "Windows 2003 Server".

    The client is "Windows XP Professional Service Pack 2", and IE 6.0

    The client uses https://ServerIPAddress/AppName/Login.aspx to connect to the server

    Any help is appreciated.

     

    Thanks,

    Venkat

    Tuesday, October 24, 2006 6:36 PM