Secure ASP.NET MVC application with SSL and client certificate authentication

前端 未结 2 1142
Happy的楠姐
Happy的楠姐 2021-01-31 23:27

I\'m looking to secure an ASP.NET MVC application with SSL and client certificate authentication. I\'m using IIS 7.5, Windows Server 2008 R2.

I\'d like to know whether i

2条回答
  •  走了就别回头了
    2021-02-01 00:16

    Going in order:

    1. Require SSL communication for all requests - Yes. In IIS, set the site with only an https binding, and delete the http binding. The site will not respond to http requests. If you do this, you should create a script to redirect 403.4 errors from http://mysite.com to https://mysite.com. You can find many examples of how to do this using various tools.

    2. Map multiple client certificates to a single user - I dunno. I will pass on this one.

    3. Require the user to be authenticated - Yes. In the web.config file, in the element, add the following:

       
           
       
      

提交回复
热议问题