Securing Wireless LANs with PEAP and Passwords

Chapter 4: Building the Network Certification Authority

Updated: April 3, 2004
On This Page
OverviewOverview
Chapter PrerequisitesChapter Prerequisites
Preparing for ImplementationPreparing for Implementation
Checking Readiness for InstallationChecking Readiness for Installation
Installing Certificate ServicesInstalling Certificate Services
Configuring the CAConfiguring the CA
SummarySummary
ReferencesReferences

Overview

This chapter guides you through installing and configuring Microsoft Windows Server™ 2003 Certificate Services. Certificate Services is an optional component of Windows Server 2003 and is not installed by default.

An installation of Certificate Services is referred to as a Certification Authority (CA). Only one CA is required for the Securing Wireless LANs with PEAP and Passwords solution. This CA will be used to issue certificates to the Internet Authentication Service (IAS) servers (discussed in the subsequent chapters of this solution).

The goal of this chapter is to provide you with a very simple, special purpose CA. Unlike most CAs, it will be used to issue only one type of certificate — server certificates for the IAS servers used in the solution. For this reason, it has been designed to be extremely simple to install, configure, and manage. It is important to note that if your organization plans on using certificates for additional purposes, such as IPSec or VPN in the future, Microsoft recommends considering a more robust Public Key Infrastructure (PKI) architecture for your environment. See the planning materials referenced in Chapter 2, "Planning a Wireless LAN Security Implementation," for more details.

The information in this chapter is limited to the implementation instructions for the CA. This chapter does not explain any of the general concepts of PKI, or any of the implementation details of Microsoft Certificate Services other than what is necessary to complete the installation. It also does not address using this CA to issue any types of certificates other than the server authentication certificates for IAS.

This chapter is based on the assumption that you do not currently have a PKI in your organization. If you do have one, it may be possible to issue certificates to the IAS servers from this rather than installing the CA described in this chapter. However, guidance on how to do this or how to install this CA into your existing PKI is outside the scope of this solution.

Instead of installing your own CA, you can obtain certificates from a commercial CA such as VeriSign or Thawte. For a discussion on the relative merits of installing your own CA versus buying certificates from an external provider, see the "Obtaining Certificates for IAS Servers" section in Chapter 2, “Planning a Wireless LAN Security Implementation.” This chapter does not include any guidance on obtaining and using certificates from a commercial CA. At the end of the chapter, however, there is a reference to a Microsoft document that describes this process.

Chapter Prerequisites

In addition to the prerequisites listed in Chapter 3, “Preparing Your Environment,” you should be familiar with Certificate Services and PKI concepts (although in-depth knowledge is not required).

Before implementing the instructions in this chapter, you need to read and implement the guidance provided in Chapter 3, “Preparing Your Environment.” You should also have read the design and planning information in Chapter 2, “Planning a Wireless LAN Security Implementation,” and have a thorough understanding of the architecture and design of the solution.

Preparing for Implementation

Permissions Needed

To carry out the procedures in this chapter, you need to log on with an account that is a member of the following groups:

The Domain Admins group for the domain into which you are installing the CA.

The Enterprise Admins group of the Microsoft Active Directory directory service forest.

By default, the built-in Administrator account of the forest root domain (the first domain created in the forest) is a member of both these groups, but you may use any other account with the same group memberships.

Note: If you are not installing the CA into the forest root domain, and the forest is a Windows 2000 Active Directory (or has been upgraded from a Windows 2000 Active Directory), the account used for the installation will also need to be a member of the forest root domain.

Tools Needed

You need the following tools to carry out the procedures in this chapter.

Table 4.1: Tools Needed to Build and Install a CA

ToolDescriptionSource

MSS Secure WLAN Tools

The set of scripts and tools supplied with this solution.

Installation steps provided in Chapter 3.

Group Policy Management Console (GPMC)

Advanced management tool for import and export of Group Policy objects (GPOs).

Installation steps provided in Chapter 3.
Can be downloaded from Microsoft.com.

CAPICOM

System library that allows scripting of certificate and security operations.

Installation steps provided in Chapter 3.
Can be downloaded from Microsoft.com.

DSACLs.exe

A command line tool that allows permissions to be set on Active Directory objects.

Installation steps provided in Chapter 3.
Available as part of Windows Server 2003 installation CD.

Active Directory Users and Computers

A Microsoft Management Console (MMC) tool that is used to manage Active Directory users, groups, and computers as well as other Active Directory objects.

Installed as part of Windows Server 2003.

Certification Authority administrative tool

An MMC tool that is used to manage the CA.

Installed as part of Certificate Services installation on Windows Server 2003.

Certification Authority Parameters

The following table lists the parameters that are used for installing and configuring the CA in this solution. These parameters are all set in the PKIparams.vbs script file and may be modified there if required.

Table 4.2: CA Settings Used in the Solution

CA Configuration ParameterSetting

Drive and path of Certificate Services request files

C:\CAConfig

Length of CA key

2048 bits

Validity period of CA certificate

25 years

Maximum validity period of certificates issued by CA

2 years

CRL publishing interval for CA

7 days

CRL overlap period (that is, the time between a new CRL being published and an old CRL expiring)

4 days

Delta–CRL publishing disabled

0

Certificate templates available on the CA

Computer (Machine)

Note: The validity period of the CA is set to a large value to avoid the administrative overhead of having to renew the CA certificate periodically. Unlike the certificates issued to computers and users, CA certificates cannot be renewed automatically and if the CA certificate is not renewed before it expires, all certificates issued by the CA will fail.

Important: The settings listed in the previous table were used in the internal testing of this solution and are known to work as documented. Many of these values can be changed, but you should do this only if you fully understand the purpose of a particular setting and the implications of changing it.

Checking Readiness for Installation

Before installing Certificate Services on your server, you must ensure that the domain is contactable and that the required tools have been installed.

To check the server prior to installation of the CA

1.

Log on to the server where you intend to install the CA (and the first instance of IAS server (using an account with appropriate administrative permissions).

2.

Click the MSS WLAN Tools shortcut to open a command shell, then at the command prompt, type:

MSSsetup CheckCAenvironment

The name of the domain into which you are installing the CA is shown in a distinguished name (DN) format (for example, dc=Treyresearch, dc=net), which is equivalent to a Domain Name System (DNS) format (Treyresearch.net).

3.

If the domain name is correct, click OK. If it is incorrect, click Cancel, log on to the correct domain, and then repeat steps 1 and 2.

The script checks for the following:

Active Directory domain controller can be contacted.

CAPICOM is installed.

GPMC is installed.

DSACLs.exe is installed and accessible.

If any problem is detected, you are notified with an error logged to the script console window. You should investigate and correct this error before continuing.

Installing Certificate Services

This section describes how to install Certificate Services to create a CA. The CA is installed as an Enterprise Root CA.

Installing the Certificate Services Software Components

You must install the CA software components using the supplied script. This script uses the Windows Optional Components Installation Manager to install the CA, building all required configuration files as it runs. To perform the installation, use the Windows Server 2003 installation CD (or the network path to a Windows installation source.

Caution: If a CA was previously installed, or if you are trying to reinstall the CA, you must first remove the existing installation. Before removing the CA, ensure that it is not in use by other applications.

Use Add/Remove Windows Components of the Add/Remove Programs applet in Control Panel to remove Certificate Services.

To install Certificate Services

1.

Use the MSS WLANTools shortcut to open a command shell.

2.

At the command prompt, type the following to install the Certificate Services software components.

MSSsetup InstallCA, and then press ENTER.

3.

When prompted, type a name for the CA.

Make the name descriptive and unique for your organization (for example, Trey Research Network CA).

4.

To confirm the name, click OK.

To edit the name, click No.

To stop the installation, click Cancel.

The script builds the installation parameter files. When this is completed, you are prompted to continue with the installation.

5.

Click OK to proceed or click Cancel to stop the installation.

Note: If you cancel the installation here, the configuration file — CAPolicy.inf —and the optional components parameter file — OC_CertSrv.txt — will be left in the Windows folder and the current working folder respectively. These files can be modified and used in a custom installation if you do not want to accept the solution defaults.

6.

After the confirmation message displays telling you that the installation is complete, click OK.

Verifying the CA Installation

You can verify successful completion of the Certificate Services installation using the following procedure.

To verify correct installation of the CA

1.

Use the MSS WLAN Tools shortcut to open a command shell.

2.

At the command prompt, type:

MSSsetup VerifyCAInstall, and then press ENTER.

The certificate viewer displays the CA certificate.

3.

Click the General tab of the certificate, and then verify that the displayed values match those in the following table.

Table 4.3 CA Certificate Properties

Certificate AttributeRequired Setting

Issued to

The name of the CA as entered during installation.

Issued by

The name of the CA as entered during the installation.

Valid from...to...

The interval specified here should be 25 years.

4.

Click the Certification Path tab and verify that only one certificate displays in the certification path field. The certificate status should display The Certificate is OK.

5.

Click OK to close the certificate viewer.

If any of the previous values are not what you expected, you restart the Certificate Services installation.

Note: If you need to rerun the CA installation, you must first remove the installed Certificate Services as described earlier.

Configuring the CA

After the CA is installed, you must run some additional scripts to configure some of the remaining CA parameters.

Configuring the CA Properties

This procedure sets a number of parameters on the CA, which govern how it behaves. Some of these parameters are set during the CA installation while others must be set after the installation. The values of these parameters are specified in the "Certification Authority Parameters" section earlier in this chapter. The script used in this procedure configures the CA properties as listed in the following table.

Table 4.4: CA Configuration Properties

CA PropertyDescription of Setting

CRL Distribution Point (CDP) URLs

Specifies the locations from which a current certificate revocation list (CRL) can be obtained. In this solution only a Lightweight Directory Access Protocol (LDAP) URL is used. It contains the LDAP path for the CRL published to Active Directory.

Authority Information Access (AIA) URLs

Indicates the location from which a CA certificate can be obtained. As with the CDP, only the LDAP URL pointing to Active Directory is used.

Validity Period

Indicates the maximum validity period for issued certificates (this is different from the validity period of the CA certificate itself, which is set during installation).

CRL Period

Indicates the frequency of CRL publication.

CRL Overlap time

Indicates the overlap time between issuing of a new CRL and expiry of the previous CRL.

Delta-CRL Period

Indicates the frequency of delta-CRL publication. (On this CA, delta-CRLs are disabled.)

CA Auditing

Indicates the CA auditing settings. (All auditing is enabled by default.)

Note: Many of these parameters affect the configuration of the CA's CRL. A CRL is a list of certificates that were issued by the CA but were subsequently canceled (or revoked) by the administrator. Even though you are unlikely to ever need to revoke any certificates while managing this solution, many applications rely on being able to read a current CRL to check the revocation status of a certificate (even though the CRL might be empty). If the application cannot find a CRL, it may reject the certificate.

To configure the CA properties

1.

Use the MSS WLAN Tools shortcut to open a command shell.

2.

At the command prompt, type the following to configure the CA components:

MSSsetup ConfigureCA, and then press ENTER.

During the configuration, the script pauses for 20 seconds to wait for a task to complete on the CA. You do not need to respond to the pop-up messages announcing this delay.

3.

Click OK to dismiss the message.

If the script reports an error, investigate the reason by tracing through the log file (%systemroot%\debug\MSSWLAN-Setup.log) and rerun the configuration script after correcting the problem.

Note: You can rerun this configuration script as many times as required.

Importing the Automatic Certificate Request GPO

This procedure imports the IAS Certificate Autoenrollment Policy GPO that is preconfigured to allow automatic issuance of certificates to the IAS servers in the domain. It uses a feature called the Automatic Certificate Request Service (ACRS).

ACRS should not be confused with the Autoenrollment capabilities in Windows Server 2003, Enterprise Edition, although the two perform similar functions. It is a more limited service than Autoenrollment and was first used in Windows 2000. It only allows computer (not user) certificates to be enrolled and works only with version 1 certificate templates. However, ACRS is adequate for the limited certificate usage in this solution, and using it allows the CA to be installed on (the less expensive) Standard Edition of Windows Server 2003.

Important: If there are multiple domains in your Active Directory forest, you need to repeat this procedure for each domain in which you install an IAS server.

The script used in the following procedure imports a preconfigured GPO with a policy to automatically enroll certificates. The GPO specifies the predefined "Computer” certificate type as the type to enroll. The script then applies security permissions to the GPO so that only members of the RAS and IAS Servers group are affected (the default setting is to apply GPOs to all authenticated users and computers).

Note: In some contexts, the Computer certificate template may be referred to as the Machine template. "Machine" is the internal name of the template, whereas "Computer" is its display name.

To install the Automatic Certificate Request GPO into your domain

1.

Use the MSS WLAN Tools shortcut to open a command shell.

2.

At the command prompt, type the following to import the IAS Certificate Autoenrollment Policy GPO into the domain:

MSSsetup ImportAutoenrollGPO, and then press ENTER.

Next, you must link this GPO to the domain so that the GPO settings will be applied to the IAS servers. This is given as a manual procedure to allow you to control the process of linking the GPO. Automating this step would run the risk of overwriting existing GPO link settings in your domain.

To apply the Automatic Certificate Request GPO

1.

Click Start¸ click All Programs, click Administrative Tools, and then Group Policy Management to start the GPMC.

2.

In the left pane of the GPMC, navigate to the domain object corresponding to your domain.

The domain object is located under the top level Domains container and has the same name as the DNS name of your domain.

3.

Right-click the domain object, and then select Link an Existing GPO....

4.

From the list of GPOs, select IAS Certificate AutoEnrollment Policy.

5.

Click OK to return to the main GPMC window.

6.

In the right pane, click the Linked Group Policy Objects tab, and then select the IAS Certificate AutoEnrollment Policy GPO.

7.

Close the GPMC.

The automatic certificate request settings will be applied to your servers only after they are added as members of the RAS and IAS Servers group. This is covered in a procedure in the next chapter.

Important: If your domain is in mixed mode and you are installing IAS on member servers (rather than on domain controllers), the RAS and IAS Servers local group will not be visible on the member servers. This will prevent the ACRS GPO from being applied to these servers and hence, stop the certificate enrollment for these servers. To avoid this, create a domain global group, add the IAS member server accounts to this group, and add this group to the GPO access control list (ACL), granting it Apply and Read permissions.

Verifying CA Configuration

The following procedure confirms that you have configured the CA correctly. The script verifies that:

The CA has the correct validity period (for issued certificates).

The CRL publishing period is correct.

The CA has the Computer certificate template assigned.

The Automatic Certificate Request (Autoenrollment) GPO has been successfully imported into the domain.

These values are checked against the settings stored in the PKIParams.vbs file. The script does not check for absolute values; it only checks if the settings have been configured on the CA correctly.

To verify the CA configuration

1.

Use the MSS WLAN Tools shortcut to open a command shell.

2.

AT the command prompt, type the following to configure the CA components:

MSSsetup VerifyCAConfig, and then press ENTER.

If the script output shows any failures, you should retrace the steps in this chapter and rectify the indicated problems.

Summary

This chapter guided you through the installation process of a special purpose CA to issue server certificates to IAS servers. The CA configuration used is designed to be extremely low maintenance and therefore, should require minimum management in the future. However, the operational and support information that you may require is included in Chapter 8, "Maintaining the Secure Wireless LAN Solution."

You are now ready to install the IAS servers. This will be covered in Chapter 5, “Building the Wireless LAN Security Infrastructure."

References

This section provides references to important supplementary information or other background material relevant to the content of this chapter.

For introduction to PKI concepts and the features of Windows 2000 Certificate Services, see the paper entitled, “An Introduction to the Windows 2000 Public-Key Infrastructure,” available at the following URL:

http://www.microsoft.com/windowsxp/pro/techinfo/planning/
pkiwinxp/default.asp

For background product documentation that discusses key concepts and administration tasks, see the "Certificate Services" section in the Windows Server 2003 product documentation available at the following URL:

http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/serverhelp/32AACFE8-83AF-4676-A45C-75483545A978.mspx

For guidance on how to obtain and use certificates from a commercial CA, see the article "Obtaining and Installing a VeriSign WLAN Server Certificate for PEAP-MS-CHAP v2 Wireless Authentication," available at the following URL:

http://download.microsoft.com/download/9/f/d/
9fd73f17-2fdf-4409-b2d2-31437c7f29f3/WLANCertEnroll.doc


**
**