Pages

Wednesday, January 30, 2013

Issuing a certificate to configure PEAP for a Cisco 4400 Series Wireless LAN Controller with Windows Server 2012 NPS (Network Policy Server)

I was recently asked by a colleague to assist with moving a Windows Server 2008 R2 NPS server providing RADIUS services for a Cisco 4400 series Wireless LAN Controller to a newer redundant design.  The redundancy was provided by 2 Windows Server 2012 NPS servers configured in 2 different sites that the Wireless LAN Controller would attempt to authenticate one after another in order and finally fall back to local authentication if both NPS servers did not response.  The document I was provided was the following:

PEAP Under Unified Wireless Networks with Microsoft Internet Authentication Service (IAS)
http://www.cisco.com/en/US/products/ps6366/products_configuration_example09186a0080921f67.shtml

One of the first items I noticed from this document and logging onto the existing Windows Server 2008 R2 server was that it was a Domain Controller with the Active Directory Certificate Services role installed onto it:

image

I was never a strong supporter of collocating CA services on a domain controller because of the following:

  • You need to remove the CA services if you wanted to demote the Domain Controller.
  • Not a requirement for Windows Server 2008 but back in the Windows 2003 Server days, the server you migrate the CA services to need to be the same name as the original so if your original CA server was DC01, the new one would also have to be DC01.

With the reasons why I do not support strictly following the Cisco guide and issuing a Domain Controller template certificate to use with PEAP, the following will demonstrate how to use a CA located on a different server for wireless authentication.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------

Most administrators would know that you can continue to configure a NPS policy with Microsoft: Protected EAP (PEAP):

clip_image001

… without a certificate but if you attempt to click on the Edit button, you will be presented with the following:

A certificate could not be found that can be used with this Extensible Authentication Protocol.

clip_image001[4]

If this was a domain controller, one of the solutions is to directly install CA on this NPS server and issue a Domain Controller template certificate for authentication as shown in the Cisco document. An alternative solution to this if you don’t want to install CA services on this server is to log onto an existing CA server, open the Certificate Authority MMC in the Administrator Tools, and navigate to the Certificate Templates:

image

Right click on the Certificate Templates folder and click on the Manage button:

image

The template we’re interested in is the RAS and IAS Server template:

image

Proceed with right clicking on the certificate template and click on Duplicate Template:

clip_image001[6]

Whether you select Windows Server 2003 Enterprise or Windows Server 2008 Enterprise doesn’t matter unless you’re using an older CA (i.e. don’t select 2008 if you’re using this on a 2003 CA server) but for this example, I will select the latter:

clip_image001[8]

The properties of the new duplicated will launch:

clip_image001[10]

Name the template with a name of your choice, modify the Validity period if you prefer it to be longer than the defaults and enable settings such as Publish certificate in Active Directory if you like:

clip_image001[12]

Navigate to the Security tab and select Authenticated Users:

image

Check the Enroll checkbox and click OK:

image

With the new certificate template created, open the Certificate Authority MMC window:

image

Right click on the Certificate Templates folder, select New and click on Certificate Template to Issue:

image

Select the template that was created earlier:

image

Notice how the new template is now listed:

image

Open the Local Computer certificate store of the NPS server and navigate to the Personal folder:

clip_image001[16]

Right click on the Personal folder, select All Tasks, Request New Certificate…:

image

Click Next:

clip_image001[18]

… then Next:

clip_image001[20]

Select the new certificate template (NPS – RAS and IAS Server):

clip_image001[22]clip_image001[24]

Clicking on the Enroll button will begin the process:

clip_image001[26]clip_image001[28]

Note how a new certificate for Server Authentication and Client Authentication has been issued in the Personal store:

image

Now when you attempt to Edit the Microsoft: Protected EAP (PEAP) Authentication Method:

clip_image001[30]

… the following window will be presented for you to select the certificate:

image 

Hope this helps anyone looking for instructions on how to use a CA that is not directly installed onto the NPS server.

14 comments:

Luis said...

Thank you very much, You save my life...2 week figure it out how make it works.

Luis said...
This comment has been removed by the author.
Anonymous said...

Thank you so much - this was the missing link I needed to tie everything together. I have new CA & new NPS on separate boxes and was getting tons of audit failures as users tried to connect to wifi.

Anonymous said...

thank you, this article just dug me out of a hole where we couldn't get a new radius server to work with Wifi..

Anonymous said...

Thanks a lot. I found this article very detailed and simple to follow.
Thanks !

Ruwan said...

Thanks :D

Anonymous said...

THanks! saved my day!

Anonymous said...

Should you disable authenticated users from being able to enroll the certificate template once you have the one you need so that regular users can't go ahead and enroll them in future whether accidentally?

R

Kees Sensitif said...

Thanks! finally a document that explains it very well.
One comment: my cert was only 2 years instead of 5.(template setting was not obbyed)
Found a solution here:
http://www.expta.com/2010/08/how-to-create-certificates-with-longer.html


Anonymous said...

Yesssssssss, thank you so very much!! Exactly the tutorial I needed! I was having trouble using a newly configured NPS Server on Server 2012R2 with a separate Server 2008 R2 DC.

PortlandJoe said...

Kudos Terence. You just saved me a huge amount of time, and I appreciate it.

Anonymous said...

Thanks for the informative guide. Should this certificate be pushed to each laptop that is connecting via EAP (I assume via the push to active directory option)? Thanks

Anonymous said...

Thanks A lot you made my day, as I was lost trying to figure it out.

Regards, Mina Gerguis

Anonymous said...

In the authentication of the duplicate template I also checked Auto enroll for Authenticated users and RAS and IAS servers.
I'm specifically doing machine authentication and needed the certificate pushed to the devices to make it all happen.
But thanks for these instructions, helped me through the mire six years ago, helped me again last week when I did it again for a different site.