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

  • SEARCH
  • Home
  • 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 8629883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:55:20+00:00 2026-06-12T08:55:20+00:00

In IIS, I can ignore, allow and require client certificates. In ASP.NET WebAPI (version

  • 0

In IIS, I can “ignore”, “allow” and “require” client certificates.

In ASP.NET WebAPI (version 4.0 that just launched a little while back), I seem to have the ability to only “ignore” or “require”.

By default, client certificates are ignored… so this statement always yields null:

var cert = actionContext.Request.GetClientCertificate();

But, if I set this flag on my config:

config.ClientCredentialType = HttpClientCredentialType.Certificate;

Then I get the client cert… but, I no longer have the ability to allow anonymous access.

My anonymous client now gets a 403 error: “The remote server returned an error: (403) Forbidden.”

Can I do a sort of “allow” like in IIS?

  • 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-06-12T08:55:22+00:00Added an answer on June 12, 2026 at 8:55 am

    This is a known limitation with using X509 Certificate in self host scenario. The actual limitation is from the underlying transport binding in WCF, which does not have the allow option with regards to Client Certificate.

    You can, however, allow multiple authentications schemes with other options, such as anonymous and windows. We are working with the WCF team to find out if we can add that support with anonymous and x509 certificate as well.

    Hope this clarifies.

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

Sidebar

Related Questions

Can IIS/ASP.net ignore the browserCaps section in a web.config? I have an app that
Can someone explain how the ASP.NET Web Development Server work? I don't have IIS
Can IIS / ASP.NET make use of the TCP keepalive option to detect dead
Can IIS supporting ASP.NET and WAMP supporting PHP coexist on the same server? We
How can I know under which IIS version my web application is running in
Is there an ISAPI filter that can automatically add the Last-Modified header in IIS?
As I'm learning the ins and outs of ASP.NET user management, I've learned that
We are using an asynchronous HttpHandler in ASP.NET 3.5 under IIS 6, and in
I would like to know if I can install IIS 7.5 on Windows Server
How can i get IIS 7 to return my custom error pages for file

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.