How to request client IIS 7.5 ssl certificate

Asked

Viewed 2,578 times

3

How to request the client’s SSL certificate in an ASP.NET MVC 5 application?

I enabled SSL on my site using IIS 7.5 but it tries to authenticate the user using the customer certificate but I don’t want to authenticate users want to just recover some certificate information.

Configuração SSL no IIS 7.5

  • In this configuration, possibly it will want to authenticate the client’s certificate as well. It would not be correct to check 'Ignore'?

  • When I mark 'Ignore' the IIS does not require the client certificate. I want the customer’s certificate, but I don’t want to use it for authentication, but as an extra variable in web application security. In fact I will try to detect attacks MEN-IN-THE-MIDDLE, especially detect proxy’s that do not inform the X-Forwarded-For header.

1 answer

1


The right option is even Require. Otherwise, the browser will not ask the user to select a certificate. However, it is not possible to intercept certificate validation in ASP.Net. You need to create a native module (in C++) and configure it in your application. This article has more details. In it, the code is shown to completely ignore the validation of the certificate; I imagine that is what you want.

If you are going to use self-signed customer certificates, there is another detail. The server sends the root certificates it considers reliable and it is common for the browser to allow the user to select only those certificates that belong to the server-accepted strings. I mean, the browser won’t show the self-signed certificate. It is possible to modify the server configuration so that it does not send the list of trusted roots (see method 3 - only create a value in the record).

Browser other questions tagged

You are not signed in. Login or sign up in order to post.