Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7193279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:08:15+00:00 2026-05-28T20:08:15+00:00

I am working on an ASP.NET WebForms application, and I have been asked to

  • 0

I am working on an ASP.NET WebForms application, and I have been asked to switch from Windows Form Authentication to PKI Certificate Authentication; something I know very little about.

After reviewing various web posts and their code snippets, I thought I knew enough to at least begin sniffing a PKI Certificate (or any client certificate for that matter). Specifically I am using:

X509Certificate2 cert = new X509Certificate2(Page.Request.ClientCertificate.Certificate);
X500DistinguishedName dn = cert.SubjectName;

So I put a breakpoint on the 2nd line, hit F5 from Visual Studio. Debugging starts, but ‘cert’ is always null. I then realize that I have no Personal certs on my computer, so I download the Firefox add-on Key-Manager, create a dummy certificate, and try again with the same result, ‘cert’ is always null.

So then, I start screwing around with the command-line tool makecert, but still ‘cert’ is always null.

I am using IIS Express 7.5 for debugging purposes, tried both http and https.

What do I need to do to attach the personal cert to any web requests, and have them get picked up by my ASP.NET application?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T20:08:16+00:00Added an answer on May 28, 2026 at 8:08 pm

    Do you have IIS express setup to require client certs?

    Please look here for a similar question/answer:

    https://serverfault.com/questions/309690/how-to-configure-iis-express-to-ask-for-client-certificate

    http://www.iis.net/ConfigReference/system.webServer/security/authentication/iisClientCertificateMappingAuthentication

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good Morning, I'm working on an ASP.NET 3.5 webforms application and have written the
Im working on an ASP.Net web forms application, where I have a form and
I have an ASP.NET WebForms application that I'm trying to switch to MVC for
I'm working on an ASP.NET WebForms CMS application, and having a bit of trouble
I am working on a ASP.Net web forms application which I inherited from a
We have an ASP.NET 2.0 WebForms app that uses MS Ajax 1.0. It's working
In my asp.net webforms application I am using plain and simple forms authentication hooked
I have a standard ASP.Net WebForms application running on IIS 7.0 with an Integrated
I have an ASP.NET WebForms control (derived from Control, not WebControl, if it helps)
I have an ASP.NET WebForms application that I'm adding some ASP.NET MVC to. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.