ENTERPRISE

Understanding and Installing Active Directory Certificate Services (part 3) - Practice Installing a CA Hierarchy

9/27/2013 7:44:29 PM

Practice Installing a CA Hierarchy

In this practice, you create a two-tier AD CS hierarchy and install the NDES feature of AD CS.

Note

WORKING WITH VIRTUAL MACHINES

It is easier to perform these exercises with virtual machines than with physical machines, at least for most readers. Note that when working with virtual machines, many users tend to save the machine state instead of shutting it down. It is a convenient way to work. However, for these exercises to work best, it is highly recommended that you work with machines that have been restarted rather than restored from a saved state. If you use machines restored from saved states, you may experience erratic behavior during these exercises.

EXERCISE 1 Install AD CS as a Stand-alone Root CA

In this exercise, you create a stand-alone root CA, which will be used as the root of your CA hierarchy. This task is performed on SERVER03. Make sure that SERVER01, your DC, is also running and that SERVER03 is a member of the domain.

  1. Log on to SERVER03 with the domain Administrator account.

    You need local administrative credentials only, but for the purposes of this exercise, it is fine to use the domain administrator account. This server can be running Windows Server 2008 R2 Standard edition, Windows Server 2008 R2 Enterprise edition, or Windows Server 2008 R2 Datacenter edition.

    Note

    STANDARD OR ENTERPRISE EDITION

    To conserve costs in production, the server you use for the root CA that will be taken offline should be Standard edition. However, if you are using a virtual machine, Enterprise edition can actually cost less.

  2. Launch Server Manager from the Administrative Tools program group.

  3. Right-click the Roles node in the tree pane and click Add Roles.

  4. Review the Before You Begin information and click Next.

  5. On the Select Server Roles page, select Active Directory Certificate Services and click Next.

  6. On the Introduction to Active Directory Certificate Services page, review the information about the selected role and click Next.

  7. On the Select Role Services page, select Certification Authority and click Next.

    Because this will be a root CA and you will take it offline as soon as you create the issuing CA, you do not assign any other role features or services.

  8. On the Specify Setup Type page, select Standalone and click Next.

  9. On the CA Type page, select Root CA and click Next.

  10. On the Set Up Private Key page, select Create A New Private Key and click Next.

    You need to create a new private key because you are creating a new root CA. However, if you were reinstalling a CA because of a system failure, you would use an existing key, one that was generated during the initial installation of the root CA. In addition, if you were creating a root CA to be chained with an external third-party CA, you would use the last option, to use the key provided by the third-party CA. You must install the key on the server before you begin the AD CS installation for the option to be available. Use the instructions provided by your third-party CA to install the certificate.

  11. On the Configure Cryptography For CA page, select the suggested cryptographic service provider (CSP). Select a key character length of 2048. Select the sha1 hash algorithm for signing certificates issued by this CA. Also select Allow Administrator Interaction When The Private Key Is Accessed By The CA.

    There are several options on this page:

    • CSPs are the engines that the Microsoft Crypto application programming interface (API) uses to generate the key pair for this root CA. CSPs can be either software or hardware based. For example, the RSA#Microsoft Software Key Storage Provider is software based, and the RSA#Microsoft Smart Card Key Storage Provider is hardware based.

    • Key character length determines the length of the keys in the pair. Four lengths are possible. Remember that the longer the key, the more processing the server will require to decode it.

    • Hash algorithms produce and assign a hash value on the keys in the pair. Because they are assigned to the keys, any tampering of the key will change the hash value and invalidate the key. Hash values provide further key protection. The algorithm you select will simply use a different calculation method to generate the hash value.

    • The last option on the page provides further protection for the root CA. By selecting this option, you ensure that use of the CA will require administrative access and will work only with this level of access. In addition, using this option will allow administrators to work with third-party CPSs.

    Click Next.

  12. On the Configure CA Name page, type Contoso-Root-CA as the common name, leave the distinguished name suffix as is, and click Next.

    The name you use will be embedded in every subordinate certificate issued by the chain.

  13. On the Set Validity Period page, change the year value to 20 and click Next.

  14. On the Configure Certificate Database page, specify the storage locations for the certificate database and the certificate database log.

    Because this is a root CA that should be taken offline and should be used only to generate certificates for the issuing CAs, you can place both on the D drive.

    For the database location, click Browse, navigate to the D drive, click Make New Folder, type CertData, and press Enter. Click OK. For the logs, click Browse, similarly create a folder on the D drive and name it CertLogs, and then click OK. Click Next.

  15. Review the information available on the AD CS page and click Install. When the installation completes, review the installation results and click Close.

    Your root CA is installed.

    Note that you can no longer change the name of this server unless you uninstall AD CS first. This is a good reason for not using a server name in the CA name in step 12.

Tip

Make sure you fully understand these installation choices, because they are part of the exam.

After your root CA is installed, return to Server Manager and click Active Directory Certificate Services under the Roles node to view the results of the installation. For example, you should have an event ID 103, as shown in Figure 3, listed on the summary page of the AD CS role. This event shows that the CA name will be added to the Certificate Authorities container in your AD DS domain. It also displays the command that you can use to view the information in the directory after the name has been added.

In a production environment, you should disconnect this CA from the network after the Group Policy cycle has been updated (you can force it with the gpudate.exe command) to provide further protection for this server.

You can now move on to installing your first issuing CA. You should install more than one issuing CA to provide high availability for your AD CS infrastructure, but each installation uses the same process. Although you do this through network connections in these exercises, in production you should use manual transfer methods such as USB devices.


Viewing the contents of Event ID 103

Figure 3. Viewing the contents of Event ID 103

EXERCISE 2 Install AD CS as an Enterprise Issuing CA

You should normally install more than one issuing CA to provide high availability for your AD CS infrastructure, but for the purposes of this exercise, one issuing CA is sufficient. Make sure that SERVER01, SERVER03, and SERVER04 are all running.

  1. Log on to SERVER04 using the domain Administrator account.

    You need domain administrator access rights to perform this operation. This server can be running Windows Server 2008 R2 Enterprise edition or Windows Server 2008 R2 Datacenter edition.

  2. Launch Server Manager from the Administrative Tools program group.

  3. Right-click the Roles node and click Add Roles.

  4. Review the Before You Begin information and click Next.

  5. On the Select Server Roles page, select Active Directory Certificate Services and click Next.

  6. On the Introduction to Active Directory Certificate Services page, review the information about the selected role and click Next.

  7. On the Select Role Services page, select Certificate Authority and Online Responder. When you select Online Responder, the wizard asks you to add the Web Server role with the required features. Click Add Required Role Services.

    You do not select Certificate Authority Web Enrollment, because this is an internal enterprise CA, and enterprise CAs rely on AD DS to distribute certificates to users and devices. If you were installing this CA in an external network, you might consider using Web Enrollment to allow users to request certificates from your CA.

    You cannot choose the Network Device Enrollment Service (NDES) installation at this time because AD CS does not support installing a CA at the same time as you install NDES. If you want to install NDES, you must select Add Roles from Server Manager after the CA installation has completed.

  8. Click Next.

  9. On the Specify Setup Type page, select Enterprise and click Next.

  10. On the Specify CA Type page, select Subordinate CA and click Next.

  11. On the Set Up Private Key page, select Create A New Private Key and click Next.

  12. On the Configure Cryptography For CA page, accept the default values and click Next.

    Note that you do not select the Allow Administrator Interaction When The Private Key Is Accessed By The CA option for this installation, because it is an issuing CA and must be able to interact with end users to issue certificates.

  13. On the Configure CA Name page, type Contoso-Issuing-CA01 as the common name, leave the default distinguished name suffix as is, and click Next.

    You use a valid name—one that has meaning for the people who interact with the machine—and a number, because you should create additional issuing CAs for redundancy purposes. For example, by naming one server Root-CA and others Issuing-CA, you are aware of the CA’s role in the hierarchy simply by looking at its name.

  14. On the Request Certificate From A Parent CA page, select Save A Certificate Request To File And Manually Send It Later To A Parent CA.

  15. Select the certificate request name (excluding the path) from the File Name field and copy it to the clipboard, and then click Browse and navigate to your Documents folder. Paste the name in the File Name box, click Save, and then click Next. You must do this; if you do not, the wizard will place the request file on the root of the C: drive.

  16. On the Configure Certificate Database page, specify the storage locations for the certificate database and the certificate database log.

    Because this is an issuing CA that will be used for testing only, you can place the data and the logs together on the D drive. However, in a production environment, issuing CAs are used heavily, so you should place the data on the D drive and the logs on an E drive.

    For the database location, click Browse, navigate to the D drive, click Make New Folder, and name it CertData. Click OK.

    For the logs, click Browse, create a folder on the D drive, name it CertLogs, and click OK. Click Next when ready.

  17. Review the installation of IIS. Click Next.

  18. On the Web Server Role Services page, review the required services and click Next.

  19. Review the information in the Confirm Installation Selections page and click Install. When the installation completes, review the installation results and click Close.

    The subordinate CA setup is not usable until it has been issued a root CA certificate and this certificate has been used to complete the installation of this subordinate CA.

Tip

EXAM TIP

Remember that you cannot install the CA and the NDES role features at the same time.

EXERCISE 3 Obtain and Install the Issuing CA Certificate

Now you obtain the certificate to complete the installation of the issuing CA. You should normally perform this procedure offline using a removable storage device such as a floppy disk or a USB flash drive, but for the purpose of this exercise, you use a shared folder to transfer the certificate request and the certificate after it is issued.

  1. On SERVER04, launch Windows Explorer and navigate to the C drive. Create a new folder and name it Temp.

  2. Right-click the Temp folder, point to Share With, and click Specific People.

  3. In the File Sharing dialog box, select Everyone in the drop-down list, and then click Add.

  4. In the Permission Level column, from the drop-down list, assign the Read/Write permission to Everyone and click Share. Click Done.

  5. Copy the certificate request you generated from your Documents folder to the Temp folder.

  6. On SERVER03, launch the Certification Authority console from the Administrative Tools program group.

  7. In the Certification Authority console, right-click the root CA name in the tree pane, point to All Tasks, and then click Submit New Request.

  8. In the Open Request File dialog box, in the File Name box, type \\SERVER04\Temp. Click Open, select the request, and then click Open again.

  9. Navigate to the Pending Requests node in the tree pane, right-click the pending request in the details pane, point to All Tasks, and then click Issue.

  10. Move to the Issued Certificates node in the tree pane, right-click the issued certificate in the details pane, and click Open.

  11. In the Certificate dialog box, click the Details tab, and then click Copy To File at the bottom of the dialog box.

    This launches the Certificate Export Wizard.

  12. Click Next.

  13. Select Cryptographic Message Syntax Standard – PKCS #7 Certificates (.P7B), select Include All Certificates In The Certification Path If Possible, and click Next.

    There are several supported formats:

    • Distinguished Encoding Rules (DER) Encoded Binary X.509 is often used for computers that do not run the Windows operating system. This creates certificate files in the DER format.

    • Base-64 Encoded X.509 supports S/MIME, which is the format used to transfer secured email messages over the Internet. On servers, it is usually used for non-Windows operating systems. This also creates certificate files in the DER format.

    • Cryptographic Message Syntax Standard (PKCS #7) is the format used to transfer certificates and their chained path from one computer to another. This format uses the P7B file format.

    • Personal Information Exchange (PKCS #12) is also used to transfer certificates and their chained path from one computer to another, but in addition, this format supports the transfer of the private key as well as the public key. Use this format with caution, because transporting the private key can jeopardize it. This format uses the PFX file format.

    • Microsoft Serialized Certificate Store is a custom Microsoft format that should be used when you need to transfer root certificates from one computer to another. This uses the SST file format.

  14. In the File To Export dialog box, click Browse and save the certificate in the \\SERVER04\Temp folder. Name the file Issuing-CA01.p7b and click Save.

  15. Click Next when you return to the wizard.

  16. Review your settings and click Finish.

  17. Click OK when the wizard tells you that the export was successful. Return to SERVER04. Remember that, normally, you would use a removable device to transport this certificate from one server to another.

  18. Go to Server Manager and select Contoso-Issuing-CA01 in the tree pane (Server Manager\Roles\Active Directory Certificate Services\Contoso-Issuing-CA01).

  19. Right-click Contoso-Issuing-CA01, point to All Tasks, and then click Install CA Certificate.

  20. Move to the C:\Temp folder, select the certificate, and click Open.

  21. The first time you enable an issuing CA, AD CS warns you that the root certificate server is not trusted. Click OK to trust the root certificate. This imports the certificate and enables the server. The trusted root will now be registered in AD DS and you will no longer get this message when you enable other issuing CAs.

  22. Right-click the server name, Contoso-Issuing-CA01, point to All Tasks, and then click Start Service.

    Your issuing CA is ready to issue certificates. At this point, you should normally take SERVER03 offline, but this is not necessary in a test environment.

    Warning

    IMPORTANT PROTECT THE CERTIFICATE

    Now that the server is ready to work, store the transferred certificate in a safe place. You should also shut down the root CA after you have performed this task for all the issuing CAs you require in your infrastructure. If the root CA is a virtual machine, shut it down, and then remove the VM files from the host server. For example, you could copy them to a DVD and then store the DVD in a very safe place.

EXERCISE 4 Prepare to Install the NDES Feature

Now you install the NDES feature. Again, this task is performed on SERVER04, but you must use SERVER01 to create a user account first.

  1. Log on to SERVER01 using the domain Administrator account.

  2. Launch Active Directory Users And Computers from the Administrative Tools program group.

  3. Create the following OU structure: Contoso.com\Admins\Service Identities.

  4. Right-click Service Identities, point to New, and then click User.

  5. Name the user NDESService, and use this name for both the logon and the pre-Windows 2000 logon names. Click Next.

  6. Assign a strong password. Clear User Must Change Password At Next Logon and select Password Never Expires.

    Note

    LEGACY SERVICE ACCOUNTS

    You must create the service account according to the steps outlined here, because you cannot use a managed service account in this instance. Managed service accounts do not work when the account is shared by multiple computers or when the account is used for a service running on multiple computers, such as for a cluster.

  7. Click Next, and then click Finish to create the account.

  8. Return to SERVER04 and log on as the domain Administrator.

  9. Launch Server Manager from the Administrative Tools program group.

  10. Expand Configuration\Local Users And Groups, and then click Groups.

  11. Double-click the IIS_IUSRS group.

  12. Add the NDESService account to this group and click OK.

EXERCISE 5 Install the NDES Feature

Now you’re ready to install the NDES service.

  1. Right-click Active Directory Certificate Services in the tree pane of Server Manager and click Add Role Services.

  2. On the Select Role Services page, select Network Device Enrollment Service.

    This requires the addition of Windows Authentication to your IIS installation.

  3. Click Add Required Role Services and click Next.

  4. On the Specify User Account page, click Select User, enter NDESService with its password, and click OK. Click Next.

  5. On the Specify Registration Authority Information page, you must enter the information for your registration authority or the authority that will assign and manage certificates assigned to network devices. Type Contoso-MSCEP-RA01 as the RA Name, select your country from the drop-down list, and leave all other information blank. Click Next.

    Normally, you should enter all the required and optional information, but for the purpose of this exercise, leaving them blank is fine.

  6. On the Configure Cryptography For Registration Authority page, keep the defaults and click Next.

    Keep in mind that key length affects CPU usage; therefore, unless you have stringent security requirements, keep the 2048 key length.

  7. Review the information about the installation of IIS. Click Next.

  8. On the Web Server Role Services page, review the required services and click Next.

  9. On the Confirm Installation Services page, click Install.

  10. Review the status and progress of the installation.

  11. Click Close.

    Your NDES service is now installed and ready to work. Your installation of the issuing server is complete.

Other  
  •  Google Woos Software Developers At I/O
  •  Active Directory 2008 : Configuring Replication (part 3) - Configuring Intersite Replication, Monitoring Replication
  •  Active Directory 2008 : Configuring Replication (part 2) - Site Links, Bridgehead Servers
  •  Active Directory 2008 : Configuring Replication (part 1) - Connection Objects,The Knowledge Consistency Checker, Intrasite Replication
  •  Active Directory 2008 : Configuring the Global Catalog and Application Directory Partitions (part 2) - Understanding Application Directory Partitions
  •  Active Directory 2008 : Configuring the Global Catalog and Application Directory Partitions (part 1) - Universal Group Membership Caching
  •  Active Directory 2008 : Configuring Sites and Subnets (part 2) - Managing Domain Controllers in Sites, Understanding Domain Controller Location
  •  Active Directory 2008 : Configuring Sites and Subnets (part 1) - Creating Sites
  •  Exchange Server 2010 : Working with Distribution Groups and Address Lists - Managing Offline Address Books
  •  Exchange Server 2010 : Working with Distribution Groups and Address Lists - Managing Online Address Lists
  •  
    Video
    Video tutorials
    - How To Install Windows 8

    - How To Install Windows Server 2012

    - How To Install Windows Server 2012 On VirtualBox

    - How To Disable Windows 8 Metro UI

    - How To Install Windows Store Apps From Windows 8 Classic Desktop

    - How To Disable Windows Update in Windows 8

    - How To Disable Windows 8 Metro UI

    - How To Add Widgets To Windows 8 Lock Screen

    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010
    programming4us programming4us
    Top 10
    Free Mobile And Desktop Apps For Accessing Restricted Websites
    MASERATI QUATTROPORTE; DIESEL : Lure of Italian limos
    TOYOTA CAMRY 2; 2.5 : Camry now more comely
    KIA SORENTO 2.2CRDi : Fuel-sipping slugger
    How To Setup, Password Protect & Encrypt Wireless Internet Connection
    Emulate And Run iPad Apps On Windows, Mac OS X & Linux With iPadian
    Backup & Restore Game Progress From Any Game With SaveGameProgress
    Generate A Facebook Timeline Cover Using A Free App
    New App for Women ‘Remix’ Offers Fashion Advice & Style Tips
    SG50 Ferrari F12berlinetta : Prancing Horse for Lion City's 50th
    Popular Tags
    Video Tutorail Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Exchange Server Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe Photoshop CorelDRAW X5 CorelDraw 10 windows Phone 7 windows Phone 8 Iphone