Module 14, Lab A: Using Certificate-based Authentication

Exercise 1: Configuring an Enterprise Subordinate CA

Tasks Detailed Steps
Important: The following step must be performed at the partner computer designated as the enterprise subordinate CA.
  1. Log on as Administrator of the NWTRADERS domain.
  1. Log off the current user.
  1. Log on by using the following credentials:
  • User name: Administrator 
  • Password: password 
  • Log on to: NWTRADERS
Why must you log on as Administrator of NWTRADERS, and not as the Administrator of your child domain?

Answer

A member of the Enterprise Admins group in the forest must install all enterprise CAs. Only the NWTRADERS\Administrator account is a member of the Enterprise Admins group.

Tasks Detailed Steps
  1. Install Certificate Services with the following information:
    • CA type: enterprise subordinate CA
    • CA name: Computer (where Computer is the NetBIOS name of your computer)
    • Organization: Northwind Traders
    • Organizational unit: Domain (where Domain is the NetBIOS name of your child domain)
    • City: Computer (where Computer is the NetBIOS name of your computer)
    • E-mail: security@nwtraders.msft
    • Parent CA: EnterpriseCA
  1. Open Control Panel.
  1. Double-click Add/Remove Programs.
  1. In the Add/Remove Programs dialog box, click Add/Remove Windows Components.
  1. In the Windows Components wizard, click Certificate Services.
  1. In the Microsoft Certificate Services dialog box, click Yes to continue.
  1. Click Next.
  1. In the Certification Authority Type page, click Enterprise subordinate CA, and then click Next.
  1. In the CA Identifying Information page, type the following information:
    • CA name: Computer (where Computer is the NetBIOS name of your computer).
    • Organization: Northwind Traders
    • Organization unit: Domain (where Domain is the NetBIOS name of your child domain)
    • City: Computer (where Computer is the NetBIOS name of your computer).
    • E-mail: security@nwtraders.msft
  1. Click Next.
  1. In the Data Storage Location page, accept the defaults, and then click Next.
  1. In the CA Certificate Request page, click the Browse button.
  1. In the Select Certification Authority dialog box, click EnterpriseCA, and then click OK.
The fully qualified domain name london.nwtraders.msft will appear in the Computer name box, and EnterpriseCA will
appear as the parent CA.
  1. Click Next.
  1. In the Microsoft Certificate Services dialog box, click OK to stop the Internet Information Services.
  1. If required, in the Files Needed dialog box, in the Copy files from box, type \\london\setup\winsrc and then click OK.
  1. Click Finish.
  1. Click Close to close the Add/Remove Programs dialog box.
  1. Close Control Panel.
Tasks Detailed Steps
  1. Log off the network.
  1. Log off the NWTRADERS\Administrator account.
What CA hierarchy design is Northwind Traders deploying?

Answer

Northwind Traders is creating a CA hierarchy based on location because each domain represents a geographic region on the global map. Alternatively, you could suggest that the CA hierarchy is being delegated based on organization, because there is a CA located in each domain.

Do not proceed until all students groups in the classroom have completed the previous step. The instructor will then stop Certificate Services on the London computer to simulate an offline enterprise root CA.

Exercise 2: Installing a User Certificate Using MMC

Tasks Detailed Steps

Important:
Perform the following procedures at both partner computers.
  1. Log on to your domain as certcomputer (where computer is the NetBIOS name of your computer) with password of password.
  1. Log off the current user.
  1. Log on to the network with the following credentials:
  • User name: certcomputer (where computer is the NetBIOS name of your computer) 
  • Password: password 
  • Log on to: domain (where domain is the NetBIOS name of your domain).
  1. Load the Certificates console in MMC.
  1. On the Start menu, click Run, type mmc and then press ENTER.
  1. On the Console menu, click Add/Remove Snap-in.
  1. In the Add/Remove Snap-in dialog box, click Add.
  1. On the Add Standalone Snap-in dialog box, click Certificates click Add, and then click Close.
  1. Click OK to close the Add/Remove Snap-in dialog box.
  1. On the Console menu, click Save As.
  1. In the Save As dialog box, type Certificate Management in the File name box, and then click Save.
Tasks Detailed Steps
  1. Request a new certificate named Web Client that uses Microsoft Base Cryptographic Provider v1.0 as the cryptographic service provider and that uses the CA from your domain as the certification authority.
  1. In the console tree, expand Certificates - Current User, and then select Personal.
  1. Right-click Personal, point to All Tasks, and then click Request New Certificate.
  1. In the Certificate Request wizard, click Next.
  1. In the Certificate Template page, select Advanced options, and then click Next.
  1. Accept the default (Microsoft Base Cryptographic Provider v1.0) on the Cryptographic Service Provider page, and then click Next.
  1. In the Certification Authority page, click Browse.
  1. In the Select Certification Authority dialog box, select the CA from your domain, and then click OK.
  1. In the Certification Authority page, verify the CA and computer names, and then click Next.
  1. In the Certificate Friendly Name and Description page, in the Friendly name box, type Web Client and then click Next.
  1. Click Finish.
  1. View and install the certificate.
  1. In the Certificate Request Wizard dialog box, click View Certificate.
Can this certificate be used to authenticate with a Web-based application? Why or why not?

Answer

Yes. The certificate can be used to prove your identity to a remote computer. The certificate can also be used to encrypt data on a disk and to protect e-mail messages.

  1. (continued)
  1. Click OK to close the Certificate dialog box.
  1. In the Certificate Request Wizard dialog box, click Install Certificate.
  1. Click OK.
Tasks Detailed Steps
  1. Verify the installation of the certificate.
  1. In the console tree, expand Personal, and then click Certificates.
  1. In the details pane, double-click the Certcomputer certificate.
  1. Click the Certification Path tab.
What is the certification path for the certificate?

Answer

EnterpriseCA =>Your Domain CA =>Web Client

  1. (continued)
  1. Click OK.
  1. Export the certcomputer certificate by using Base-64 encoded binary X.509 format to a file named c:\export.cer
  1. In the details pane, right-click the certcomputer certificate, point to All Tasks, and then click Export.
  1. In the Certificate Export wizard, click Next.
  1. In the Export Private Key page, click Next.
  1. In the Export File Format page, select Base-64 encoded x.509 (.CER), and then click Next.
  1. In the File to Export page, type c:\export and then click Next.
  1. Click Finish.
  1. In the Certificate Export Wizard message box, click OK to confirm the export.
  1. Close all windows and log off.
Tasks Detailed Steps
Why was the Base-64 encoded binary x.509 certificate format selected?

Answer

Certificate mapping that uses an import file requires that the import file be a text-based (ASCII) version of the certificate.

What security risk is involved with this step?

Answer

The certificate file must be securely transported to the Web server so that the certificate can be mapped to a user account.

Exercise 3: Configuring the Web Server to Use Certificate-based Authentication

Tasks Detailed Steps

Important:
Perform the following procedures at both partner computers.
Set the NTFS permissions for the c:\inetpub\wwwroot\security folder to only allow the following access:  
  • Certpartner (where partner is the NetBIOS name of your partner's computer): Read and Execute, List Folder Contents, and Read.
  • System: Full Control
  1. Log on as the Administrator of your domain with password of password.
  1. On the Start menu, click Run, type c:\inetpub\wwwroot and then press ENTER.
  1. In the wwwroot window, right-click Security, and then click Properties.
  1. In the Security Properties dialog box, click the Security tab.
  1. Clear the Allow inheritable permissions from parent to propagate to this object check box.
  1. In the Security dialog box, click Copy to copy the inherited permissions from the wwwroot folder.
  1. In the Security Properties dialog box, click Administrators in the Name box, and then click Remove.
  1. In the Security Properties dialog box, click Everyone in the Name box, and then click Remove.
  1. Click Add.
  1. In the Select Users, Computers, or Groups dialog box, in the Name list, click Certpartner (where partner is the NetBIOS name of your partner's computer), and then click Add.
  1. Click OK to close the Select Users, Computers, or Groups dialog box.
  1. Click OK to close the Security Properties dialog box.
  1. Close the wwwroot window.
  1. Open the Default Web Site properties in Internet Services Manager.
  1. In the Administrative Tools menu, open Internet Services Manager.
  1. In the console tree, expand computer (where computer is the name of your computer), and then select Default Web Site.
  1. Right-click Default Web Site, and then click Properties.
Tasks Detailed Steps
  1. On the Directory Security tab, configure a server certificate with the following properties: Send an immediate request
    • Bit length: 1024 bits
    • Organization: Northwind Traders
    • Organizational unit: domain (where domain is the NetBIOS name of your domain)
    • Common name: computer (where computer is the NetBIOS name of your computer)
    • Country/Region: US (United States)
    • State/Province: CO
    • City/Locality: Denver
    • Certification authority: the CA configured in Exercise 1 for your domain
  1. In the Default Web Site Properties dialog box, click the Directory Security tab.
  1. Click Server Certificate.
  1. In the Welcome to the Web Server Certificate Wizard page, click Next.
  1. In the Server Certificate page, click Create a new certificate, and then click Next.
  1. In the Delayed or Immediate Request page, click Send the request immediately to an online certification authority, and then click Next.
  1. In the Name and Security Settings page, in the Bit length box, select 1024, and then click Next.
  1. In the Organization Information page, type the following information:
    • Organization: Northwind Traders
    • Organizational Unit: domain (where domain is the NetBIOS name of your domain).
  1. Click Next.
  1. In the Your Site's Common Name page, in the Common name box, ensure that computer (where computer is the NetBIOS name of your computer) appears, and then click Next.
  1. In the Geographical Information page, type the following information:
    • Country/Region: US (United States)
    • State/Province: CO
    • City/Locality: Denver
  1. Click Next.
  1. In the Choose a Certification Authority page, ensure that the Certification Authority is set to the CA configured in exercise 1 for your domain (computer.domain.nwtraders.msft\computer, where computer is the name of your partner's or your computer and domain is the name of your domain), and then click Next.
  1. In the Certificate Request Submission page, ensure that all information is correct, and then click Next.
  1. In the Completing the Web Server Certificate wizard, ensure that the second paragraph states that A certificate is now installed on this server, and then click Finish.
  1. Click OK to close the Default Web Site Properties dialog box.
Tasks Detailed Steps
  1. Configure the Security folder to use secure channel with the following attributes.
  1. In the console tree, expand Default Web Site, right-click Security, and then click Properties.
  1. In the Security Properties dialog box, click the Directory Security tab.
  1. In the Directory Security tab, in the Secure communications box, click Edit.
  1. In the Secure Communications dialog box, enable the following options:
    • Require secure channel (SSL)
    • Require client certificates
    • Enable client certificate mapping
  1. Click Edit.
  1. In the Account Mappings dialog box, on the 1-1 tab, click Add.
  1. In the File name box, type \\partner\c$\export.cer (where partner is the NetBIOS name of your partner's computer), and then click Open.
  1. In the Map to Account dialog box, ensure that Enable this mapping is selected, and then enter the following information:
    • Map Name: partner (where partner is the NetBIOS name of your partner's computer)
    • Account: domain\certpartner (where domain is the NetBIOS name of your domain and partner is the NetBIOS name of your partner's computer)
    • Password: leave blank
  1. Click OK to close the Map to Account dialog box.
  1. Click OK to close the Account Mappings dialog box.
  1. Click OK to close the Secure Communications dialog box.
  1. Click OK to close the Security Properties dialog box.
  1. Close Internet Information Services.

Exercise 4: Accessing a Web Site Using Certificate Authentication

Tasks Detailed Steps

Important:
Perform the following procedures at both partner computers.
  1. Log on as certcomputer andconnect to the site http://partner/security (where partner is the NetBIOS name of your partner's computer) by using Internet Explorer.
  1. Ensure that you are logged on as certcomputer (where computer is the NetBIOS name of your computer) with a password of password.
  1. Double-click Internet Explorer on the desktop.
  1. In the address bar, type http://partner/security (where partner is the NetBIOS name of your partner's computer).
Can you access the Web site? Why or why not?

Answer

No. The http://partner/security Web site has been configured to require a secure channel; therefore, the Web browser must specify the Uniform Resource Locator (URL) by using https://partner/security.

  1. Connect to https://partner/security and present the Certcomputer (where computer is the NetBIOS name of your computer) certificate for authentication.
  1. In the address bar, type https://partner/security
  1. In the Security Alert dialog box, click OK.
  1. In the Client Authentication dialog box, ensure that the Certcomputer (where computer is the NetBIOS name of your computer) certificate is selected, and then click OK.
  1. Close Internet Explorer and log off.
Tasks Detailed Steps
Can you access the Web site? Did you need to type credentials?

Answer

Yes, the Web site can be accessed. No, there was no need to type credentials, because the certificate provided your credentials for the Web site.

Could the account mapping for the certificate have been performed differently? If so, what are advantages or disadvantages of the other method or methods?

Answer

Yes. You could have created the certificate mapping by using Active Directory Users and Computers. The advantage of this is that any PKI-based application within the forest could use the account mapping. The disadvantage is that you would still be required to do account mapping in IIS if the IIS server were not a member of the forest (for example, if the Web server were located within a screened subnet).

Exercise 5: Revoking a Certificate

Tasks Detailed Steps

Important:
Perform the following procedures at the computer acting as the enterprise subordinate CA.
  1. Log on to the network as Administrator of your domain with a password of password.
  1. Log on by using the following credentials:
    • User name: Administrator
    • Password: password
    • Log on to: NWTRADERS
  1. In the Certification Authority console, revoke the following certificates with the Change of Affiliation reason code:
    • Domain\Certcomputer (where domain is the NetBIOS name of your domain and computer is the NetBIOS name of your computer)
    • Domain\Certpartner (where domain is the NetBIOS name of your domain and partner is the NetBIOS name of your partner's computer)
  1. On the Start menu, click Programs, point to Administrative Tools, and then click Certification Authority.
  1. In the console tree, expand computer (where computer is the NetBIOS name of your computer), and then click Issued Certificates.
  1. In the details pane, right-click the certificate with Requester Name of domain\Certcomputer (where domain is the NetBIOS name of your domain and computer is the NetBIOS name of your computer), click All Tasks, and then click Revoke Certificate.
  1. In the Certificate dialog box, in the Reason code box, select Change of Affiliation, and then click Yes.
  1. In the details pane, right-click the certificate with Requester Name of domain\Certpartner (where domain is the NetBIOS name of your domain and partner is the NetBIOS name of your partner's computer), click All Tasks, and then click Revoke Certificate.
  1. In the Certificate dialog box, in the Reason code box, select Change of Affiliation, and then click Yes.
Tasks Detailed Steps
  1. Verify the revoked certificates and publish the CRL.
  1. In the console tree, click Revoked Certificates.
Is the task of revoking the certificates complete?

Answer

No. The CRL must be published to ensure that all certificate-aware applications will see the change in the status of the certificates.

  1. (continued)
  1. In the console tree, right-click Revoked Certificates, and then click Publish.
  1. In the Certificate Revocation List dialog box, click Yes to publish the new CRL.
  1. Close all open windows and log off the network.

Exercise 6: Testing the Certificate Revocation List

Tasks Detailed Steps

Important:
Perform the following procedures at both partner computers.
  1. Log on as certcomputer and connect to the site https://partner/security (where partner is the NetBIOS name of your partner's computer) by using Internet Explorer.
  1. Log on as certcomputer (where computer is the NetBIOS name of your computer) with a password of password.
  1. Double-click Internet Explorer on the desktop.
  1. In the address bar, type https://partner/security (where partner is the NetBIOS name of your partner's computer).
Can you access the Security Web site? Why or why not?

Answer

Yes. You still can access the Security Web site because the previous version of the CRL is cached on your computer. The previous CRL will be valid until it expires.

How could you reduce the time that the outdated CRL is maintained at clients? Are there any performance costs related to reducing the CRL caching period?

Answer

You must change the CRL publication interval to a lower time frame than the default of one week. The CRL publication interval sets how frequently a client will connect to request an updated version of the CRL. Publishing the CRL more frequently will increase the server load because clients will connect more often and the CRL must be publicized more frequently.

Tasks Detailed Steps
How can you immediately prevent access to the current holder of the certificate?

Answer

Remove former employees from any groups that have been assigned permissions to the Security Web site. This may also require editing the DACL for the Security folder if permissions were assigned directly to the user account.

  1. Log on as Administrator of your domain and change the permissions for the c:\inetpub\wwwroot\security folder to not include the certpartner (where partner is the NetBIOS name of your partner's computer) account.
  1. Close all windows and log off the current user.
  1. Log on to the network as Administrator of your domain with a password of password.
  1. On the Start menu, click Run, type c:\inetpub\wwwroot and then press ENTER.
  1. In the wwwroot window, right-click Security, and then click Properties.
  1. In the Security Properties dialog box, in the Name box, select Certpartner (where partner is the NetBIOS name of your partner's computer), and then click Remove.
  1. Click OK to close the Security Properties dialog box.
  1. Close the wwwroot window.
  1. Close all open windows and log off.

Important:
Wait until your partner has completed the previous task.
  1. Log on as certcomputer andConnect to the site https://partner/security (where partner is the NetBIOS name of your partner's computer) by using Internet Explorer.
  1. Log on as certcomputer (where computer is the NetBIOS name of your computer) with a password of password.
  1. Double-click Internet Explorer on the desktop.
  1. In the address bar, type https://partner/security (where partner is the NetBIOS name of your partner's computer).
  1. In the Security Alert dialog box, click OK.
  1. In the Client Authentication dialog box, ensure that the Certcomputer (where computer is the NetBIOS name of your computer) is selected, and then click OK.
Tasks Detailed Steps
Can you access the Web site? Did you need to type credentials?

Answer

No. You are prompted for credentials because the certificate that the certcomputer account has does not map to an account with access to the Web site.

  1. (continued)
  1. Close all open windows and log off the network.

 

©2000 Microsoft Corporation. All rights reserved. Legal Notices.
Last Updated: June 20, 2000