This article describes how to move a certification authority (CA) to a different server.کد:http://support.microsoft.com/default.aspx?scid=kb;EN-US;298138
Certification authorities (CAs) are the central component of the public key infrastructure (PKI) of an organization. The CAs are configured to exist for many years or decades, during which time the hardware that hosts the CA is probably upgraded.
Notes
- To move a CA from a server that is running Windows 2000 Server to a server that is running Windows Server 2003, you must first upgrade the CA server that is running Windows 2000 Server to Windows Server 2003. Then you can follow the steps that are outlined in this article.
- Make sure that the %Systemroot% of the target server matches the %Systemroot% of the server from which the system state backup is taken.
You must change the path of the CA files when you install the CA server components so that they match the location of the backup. For example, if you back up from the D:\Winnt\System32\Certlog folder, you must restore the backup to the D:\Winnt\System32\Certlog folder. You cannot restore the backup to the C:\Winnt\System32\Certlog folder. After you restore the backup, you can move the CA database files to the default location.
If you try to restore the backup, and the %Systemroot% of the backup and the target server do not match, you may receive the following error message: Restore of an incremental image cannot be performed before you perform restore from a full image. The directory name is invalid. 0x8007010b (WIN32/HTTP:267)
Moving Certificate Services from a 32-bit operating system to a 64-bit operating system or vice-versa may fail with one of the following error messages: The expected data does not exist in this directory.
Restore of incremental image cannot be performed before performing restore from a full image 0x8007010b (WIN32/HTTP:267)
Database format changes from the 32-bit version to the 64-bit version cause incompatibilities, and the restore is blocked. This is similar to the move from Windows 2000 to the Windows Server 2003 CA. However, there is no upgrade path from a 32-bit version of Windows Server 2003 to a 64-bit version. Therefore, you cannot move an existing 32-bit database to a 64-bit database. For more information, click the following article number to view the article in the Microsoft Knowledge Base: 912309 (How to upgrade Windows Server 2003 with Service Pack 1 to Windows Server 2003 R2 ) How to upgrade Windows Server 2003 with Service Pack 1 to Windows Server 2003 R2- An x64-based version of Windows Server 2003 R2 CD2 only updates 64-bit versions of Windows Server 2003 that are based on the EM64T architecture or on the AMD64 architecture.
Back up and restore the certification authority keys and database
Windows Server 2003
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756 (How to back up and restore the registry in Windows XP ) How to back up and restore the registry in Windows
- Note the certificate templates that are configured in the Certificate Templates folder in the Certification Authority snap-in. The Certificate Templates settings are stored in Active Directory. They are not automatically backed up. You must manually configure the Certificate Templates settings on the new CA to maintain the same set of templates.
Note The Certificate Templates folder exists only on an enterprise CA. Stand-alone CAs do not use certificate templates. Therefore, this step does not apply to a stand-alone CA.- Use the Certification Authority snap-in to back up the CA database and private key. To do this, follow these steps:
- In the Certification Authority snap-in, right-click the CA name, click All Tasks, and then click Back up CA to start the Certification Authority Backup Wizard.
- Click Next, and then click Private key and CA certificate.
- Click Certificate database and certificate database log.
- Use an empty folder as the backup location. Make sure that the backup folder can be accessed by the new server.
- Click Next. If the specified backup folder does not exist, the Certification Authority Backup Wizard creates it.
- Type and then confirm a password for the CA private key backup file.
- Click Next, and then verify the backup settings. The following settings should be displayed:
- Private Key and CA Certificate
- Issued Log and Pending Requests
- Click Finish.
- Save the registry settings for this CA. To do this, follow these steps:
- Click Start, click Run, type regedit in the Open box, and then click OK.
- Locate and then right-click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\CertSvc\Configuration
- Click Export.
- Save the registry file in the CA backup folder that you defined in step 2d.
- Remove Certificate Services from the old server.
Note This step removes objects from Active Directory. Do not perform this step out of order. If removal of the source CA is performed after installation of the target CA (step 6 in this section), the target CA will become unusable.- Rename the old server, or permanently disconnect it from the network.
- Install Certificate Services on the new server. To do this, follow these steps.
Note The new server must have the same computer name as the old server.
- In Control Panel, double-click Add or Remove Programs.
- Click Add/Remove Windows Components, click Certificate Services in the Windows Components Wizard, and then click Next.
- In the CA Type dialog box, click the appropriate CA type.
- Click Use custom settings to generate the key pair and CA certificate, and then click Next.
- Click Import, type the path of the .P12 file in the backup folder, type the password that you chose in step 2f, and then click OK.
- In the Public and Private Key Pair dialog box, verify that Use existing keys is checked.
- Click Next two times.
- Accept the Certificate Database Settings default settings, click Next, and then click Finish to complete the Certificate Services installation.
- Stop the Certificate Services service.
- Locate the registry file that you saved in step 3, and then double-click it to import the registry settings. If the path that is shown in the registry export from the old CA differs from the new path, you must adjust your registry export accordingly. By default, the new path is C:\Windows in Windows Server 2003.
- Use the Certification Authority snap-in to restore the CA database. To do this, follow these steps:
- In the Certification Authority snap-in, right-click the CA name, click All Tasks, and then click Restore CA.
The Certification Authority Restore Wizard starts.- Click Next, and then click Private key and CA certificate.
- Click Certificate database and certificate database log.
- Type the backup folder location, and then click Next.
- Verify the backup settings. The Issued Log and Pending Requests settings should be displayed.
- Click Finish, and then click Yes to restart Certificate Services when the CA database is restored.
Note You may receive the following error during the restore CA process if the CA backup folder is not in the correct folder structure format: ---------------------------
Microsoft Certificate Services
---------------------------
The expected data does not exist in this directory.
Please choose a different directory. The directory name is invalid. 0x8007010b (WIN32/HTTP: 267)
The correct folder structure is as follows:
C:\Ca_Backup\CA_NAME.p12
C:\Ca_Backup\Database\certbkxp.dat
C:\Ca_Backup\Database\edb#####.log
C:\Ca_Backup\Database\CA_NAME.edb
where C:\Ca_Backup is the folder you chose during the Backup CA phase in step 2.- In the Certification Authority snap-in, manually add or remove certificate templates to duplicate the Certificate Templates settings that you noted in step 1.
Windows 2000 Server
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756 (How to back up and restore the registry in Windows XP ) How to back up and restore the registry in Windows
- Note the certificate templates that are configured in the Certificate Templates folder in the Certification Authority snap-in. The Certificate Templates settings are stored in Active Directory. They are not automatically backed up. You must manually configure the Certificate Templates settings on the new CA to maintain the same set of templates.
Note The Certificate Templates folder exists only on an enterprise CA. Stand-alone CAs do not use certificate templates. Therefore, this step does not apply to a stand-alone CA.- Use the Certification Authority snap-in to back up the CA database and private key. To do this, follow these steps:
- In the Certification Authority snap-in, right-click the CA name, click All Tasks, and then click Back up CA to start the Certification Authority Backup Wizard.
- Click Next, and then click Private key and CA certificate.
- Click Issued certificate log and pending certificate request queue.
- Use an empty folder as the backup location. Make sure that the backup folder can be accessed by the new server.
- Click Next. If the specified backup folder does not exist, the Certification Authority Backup Wizard creates it.
- Type and then confirm a password for the CA private key backup file.
- Click Next two times, and then verify the backup settings. The following settings should be displayed:
- Private Key and CA Certificate
- Issued Log and Pending Requests
- Click Finish.
- Save the registry settings for this CA. To do this, follow these steps:
- Click Start, click Run, type regedit in the Open box, and then click OK.
- Locate and then right-click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\CertSvc\Configuration
- Click Configuration , and then click Export Registry File on the Registry menu.
- Save the registry file in the CA backup folder that you defined in step 2d.
- Remove Certificate Services from the old server.
Note This step removes objects from Active Directory. Do not perform this step out of order. If removal of the source CA is performed after installation of the target CA (step 6 in this section), the target CA will become unusable.- Rename the old server, or permanently disconnect it from the network.
- Install Certificate Services on the new server. To do this, follow these steps.
Note The new server must have the same computer name as the old server.
- In Control Panel, double-click Add/Remove Programs.
- Click Add/Remove Windows Components, click Certificate Services in the Windows Components Wizard, and then click Next.
- In the Certification Authority Type dialog box, click the appropriate CA type.
- Click Advanced Options, and then click Next.
- In the Public and Private Key Pair dialog box, click Use existing keys, and then click Import.
- Type the path of the .P12 file in the backup folder, type the password that you chose in step 2f, and then click OK.
- Click Next, type a CA description if appropriate, and then click Next.
- Accept the Data Storage Location default settings, click Next, and then click Finish to complete the Certificate Services installation.
- Stop the Certificate Services service.
- Locate the registry file that you saved in step 3, and then double-click it to import the registry settings.
- Use the Certification Authority snap-in to restore the CA database. To do this, follow these steps:
- In the Certification Authority snap-in, right-click the CA name, click All Tasks, and then click Restore CA.
The Certification Authority Restore Wizard starts.- Click Next, and then click Issued certificate log and pending certificate request queue.
- Type the backup folder location, and then click Next.
- Verify the backup settings. The following settings should be displayed:
- Issued Log
- Pending Requests
- Click Finish, and then click Yes to restart Certificate Services when the CA database is restored.
- In the Certification Authority snap-in, manually add or remove certificate templates to duplicate the Certificate Templates settings that you noted in step 1.
For more information about upgrade and migration scenarios for Windows Server 2003 and Windows Server 2008, see the "Active Directory Certificate Services Upgrade and Migration Guide" white paper. To download the white paper, visit the following Microsoft Download Center Web site: Download details: Active Directory Certificate Services Upgrade and Migration Guide for Windows Server 2008 (Download details: Active Directory Certificate Services Upgrade and Migration Guide for Windows Server 2008)
APPLIES TO
- Microsoft Windows Server 2003, Enterprise x64 Edition
- Microsoft Windows Server 2003, Standard x64 Edition
- Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
- Microsoft Windows Server 2003, Standard Edition (32-bit x86)
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Server
موضوعات مشابه:
- Move کردن DNS به سرور جدید
- Installing and Configuring a Windows Server 2003 Enterprise Certification Authority
- Certificate authority