Search code examples
asp.net-mvcsslasp.net-mvc-areasclient-certificates

Securing asp.net mvc area with client certificate


I have some troubles with configuring requesting for client certificate to protect mvc area. I can easily configure this for whole application, but is it possible to do this only for one area (admin for example) ?


Solution

  • So, the easiest way to achieve this, is to create a folder named as your area and set required SSL settings on this folder using IIS Manager. Then you can delete this folder. IIS Manager will set required settings in applicationHost.config file. Or you can manually edit applicationHost.config.

    Here is the applicationHost.config manual.