Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anybody know how to configure IIS Express to require client certificate for access? I'm trying to debug a problematic ASP.NET application which uses client certificates for authentication.

share|improve this question

migrated from Sep 9 '11 at 9:20

This question came from our site for professional and enthusiast programmers.

Close? Most of the IIS Express settings are configured in Visual Studio and debugging a program is definitely related to programming... – Marko Sep 9 '11 at 7:42
Then a question like "how to install Visual Studio?" would be a regular one? :) – onof Sep 9 '11 at 8:32
I don't want to argue here, but FYI IIS Express is mostly used for debugging of ASP.NET applications as it offers functionality which ASP.NET development server doesn't support. My question is related to debugging. But to debug I need to configure it first. I think it is more probable that this is already done by some developer and not by a system administrator as they would use the real IIS anyway. – Marko Sep 9 '11 at 9:18
I wouldn't know how to programmatically require the client certificate for access. However, here is a resource I found help from. Hope this helps – i.h4d35 Nov 26 '12 at 19:17

Use the IIS Manager tool and follow the Microsoft documentation IIS Client Certificate Mapping Authentication <iisClientCertificateMappingAuthentication>.

Sample config:

<location path="Default Web Site">
            <windowsAuthentication enabled="false" />
            <anonymousAuthentication enabled="false" />
            <digestAuthentication enabled="false" />
            <basicAuthentication enabled="false" />
            <iisClientCertificateMappingAuthentication enabled="true"
                  <add name="Contoso Employees"
                        <add certificateField="Subject"
                           compareCaseSensitive="true" />
         <access sslFlags="Ssl, SslNegotiateCert" />
share|improve this answer
Not really a relevant answer. – Azimuth Jun 7 at 8:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.