Client Authentication With IIS 8 (Windows Server 2012) Many to One Mapping.


Downloadable PDF Document

When setting up Client Authentication I did IIS Specific rather than Active Directory. To set this up, you will first need to set your site to require SSL. Open IIS and expand the server until you see your website. Select your site, and then select SSL Settings.

Require SSL

Then select the check box to Require SSL, then under Client certificates, select Require. This forces the site to require Client authentication in order to access the contents.

Require Client Certificates

By default your site has Anonymous Authentication enabled. This allows anyone to access the site. So you will need to disable this. Go back to your site management section and select Authentication.

Client Authentication

Right click Anyonymous Authentication and then select Disable.

Anonymous Authentication

Now the basics are set up. At this point you need to tell the server what to allow, or if it's easier what not to allow. Go to your site's management page in IIS and select Configuration Editor.

Authentication Rules

In the Configuration Editor you can select any security sectoins. For this specific tutorial we wan't to go to the system.webServer>security>authentication>iisClientMappingAuthentication.

iisClientMappingAuthentication

For Many to One authentication, set oneToOneCertificateMappingsEnabled to false, and manyToOneCertificateMappingsEnabled to true.

iisClientMappingAuthentication

Next to manToOneMappings (Count=0) select the "..." button.

iisClientMappingAuthentication

The to the right of the new window select "Add".

iisClientMappingAuthentication

At the bottom of the window are new fields to enter information into:

iisClientMappingAuthentication

Now that you have the Mapping created, it's time to create some rules for the Mapping. Select the "..." button next to rules.

iisClientMappingAuthentication

Again select "Add" in the new window, and you will be presented with a few options.

iisClientMappingAuthentication

At this point you can close both new windows and select Apply in the Configuration Editor to apply the rules. And you are done. You have successfully enabled Client Authentication for your IIS server using Many to One Mapping.The advantage to this is that you can restrict or enabled access to a range of clients. If you rather restrict to one or few individuals then you may wan't to consider One to One Mapping.