Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS 7 How to map a client certificate with a user account in a database?

Here it is said http://blogs.iis.net/webtopics/archive/2010/04/27/configuring-many-to-one-client-certificate-mappings-for-iis-7-7-5.aspx

Many-to-one Client certificate mapping is used by the Internet Information Services (IIS) to associate an end user to a windows account when the client certificate is used for the user authentication.

What if I don't want to map with a windows account but with an account in custom database or in membership ?

How to do it in asp.net (sample code somewhere ?)

hmm: nobody knows ? Will have to give bounty soon :)

like image 796
user310291 Avatar asked Jul 20 '12 06:07

user310291


People also ask

How do I map a certificate in IIS 7?

In Control Panel, click Programs and Features, and then click Turn Windows features on or off. Expand Internet Information Services, expand World Wide Web Services, expand Security, and then select IIS Client Certificate Mapping Authentication. Click OK. Click Close.

How do I add client authentication to my certificate?

On the taskbar, click Start, and then click Control Panel. In Control Panel, click Programs and Features, and then click Turn Windows Features on or off. Expand Internet Information Services, then select Client Certificate Mapping Authentication, and then click OK.

How do you create an IIS website that requires client certificate using self signed certificates?

Go to Default Web Site → SSL Settings . Enable Require SSL , choose Require for Client certificate and then click Apply to save the settings.


1 Answers

The US DOD uses this for CAC. Essentially, you just store some part of the certificate (say the SUBJECT) and then compare against this for authentication.

In ASP.Net, you access the Client Cert thusly:

Request.ClientCertificate.Subject

Many certificate subjects will have a unique id within and so the certificate id is used to cover for changes in the individuals name.

like image 156
jle Avatar answered Oct 19 '22 22:10

jle