HttpWebRequest Post with ClientCertificates working in Debug and VS, but not working in IIS

Discussion in 'ASP .Net' started by calebmeii, Jun 29, 2007.

  1. calebmeii

    calebmeii Guest


    Anyone's help is really appreciated!

    VS05 with .net 2.0, on Windows XP/2003 IIS 5/6, on ASP,

    When post a HttpWebRequest with client ceritificate

    X509Certificate cert =

    Response.Write("Loaded cert: " + cert.GetName() + ": " +
    cert.GetIssuerName() + ", Hash:" + cert.GetCertHashString());

    HttpWebRequest objRequest =


    It works well in C# windows program, or In, when it
    is in debug mode, it works.

    However, when I put the aspx into wwwroot, then the client certificate
    is not being sent along with the request. Given that I have printed
    out the cert info, and multiple attempts on permission, it seems like
    HTTPWebRequest is not sending the client certificate.

    Anyone has similar issue? Any tools that can assist me to troubleshoot
    the issue?

    Really appreciated!

    calebmeii, Jun 29, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.