Microsoft KB Archive/298138

= How to move a certification authority to another server =

Article ID: 298138

Article Last Modified on 3/5/2007

-

APPLIES TO


 * 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

-



This article was previously published under Q298138





Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SUMMARY
This article describes how to move a certification authority (CA) to a different server.

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)



Windows Server 2003
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.  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.</li> Click Next, and then click Private key and CA certificate.</li> Click Certificate database and certificate database log.</li> Use an empty folder as the backup location. Make sure that the backup folder can be accessed by the new server.</li> Click Next. If the specified backup folder does not exist, the Certification Authority Backup Wizard creates it.</li> Type and then confirm a password for the CA private key backup file.</li> Click Next, and then verify the backup settings. The following settings should be displayed:  Private Key and CA Certificate</li> Issued Log and Pending Requests</li></ul> </li> Click Finish.</li></ol> </li> Save the registry settings for this CA. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Click Start, click Run, type regedit in the Open box, and then click OK.</li> Locate and then right-click the following registry subkey:

</li> Click Export.</li> Save the registry file in the CA backup folder that you defined in step 2d.</li></ol> </li> Remove Certificate Services from the old server.</li> <li>Rename the old server, or permanently disconnect it from the network.</li> <li>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. <ol style="list-style-type: lower-alpha;"> <li>In Control Panel, double-click Add or Remove Programs.</li> <li>Click Add/Remove Windows Components, click Certificate Services in the Windows Components Wizard, and then click Next.</li> <li>In the CA Type dialog box, click the appropriate CA type.</li> <li>Click Use custom settings to generate the key pair and CA certificate, and then click Next.</li> <li>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.</li> <li>In the Public and Private Key Pair dialog box, verify that Use existing keys is checked.</li> <li>Click Next two times.</li> <li>Accept the Certificate Database Settings default settings, click Next, and then click Finish to complete the Certificate Services installation.</li></ol> </li> <li>Stop the Certificate Services service.</li> <li>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.</li> <li>Use the Certification Authority snap-in to restore the CA database. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>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.</li> <li>Click Next, and then click Private key and CA certificate.</li> <li>Click Certificate database and certificate database log.</li> <li>Type the backup folder location, and then click Next.</li> <li>Verify the backup settings. The Issued Log and Pending Requests settings should be displayed.</li> <li>Click Finish, and then click Yes to restart Certificate Services when the CA database is restored.</li></ol> </li> <li>In the Certification Authority snap-in, manually add or remove certificate templates to duplicate the Certificate Templates settings that you noted in step 1.</li></ol>

Windows 2000 Server
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.= <ol> <li>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.</li> <li>Use the Certification Authority snap-in to back up the CA database and private key. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>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.</li> <li>Click Next, and then click Private key and CA certificate.</li> <li>Click Issued certificate log and pending certificate request queue.</li> <li>Use an empty folder as the backup location. Make sure that the backup folder can be accessed by the new server.</li> <li>Click Next. If the specified backup folder does not exist, the Certification Authority Backup Wizard creates it.</li> <li>Type and then confirm a password for the CA private key backup file.</li> <li>Click Next two times, and then verify the backup settings. The following settings should be displayed: <ul> <li>Private Key and CA Certificate</li> <li>Issued Log and Pending Requests</li></ul> </li> <li>Click Finish.</li></ol> </li> <li>Save the registry settings for this CA. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Click Start, click Run, type regedit in the Open box, and then click OK.</li> <li>Locate and then right-click the following registry subkey:

</li> <li>Click Configuration, and then click Export Registry File on the Registry menu.</li> <li>Save the registry file in the CA backup folder that you defined in step 2d.</li></ol> </li> <li>Remove Certificate Services from the old server.</li> <li>Rename the old server, or permanently disconnect it from the network.</li> <li>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. <ol style="list-style-type: lower-alpha;"> <li>In Control Panel, double-click Add/Remove Programs.</li> <li>Click Add/Remove Windows Components, click Certificate Services in the Windows Components Wizard, and then click Next.</li> <li>In the Certification Authority Type dialog box, click the appropriate CA type.</li> <li>Click Advanced Options, and then click Next.</li> <li>In the Public and Private Key Pair dialog box, click Use existing keys, and then click Import.</li> <li>Type the path of the .P12 file in the backup folder, type the password that you chose in step 2f, and then click OK.</li> <li>Click Next, type a CA description if appropriate, and then click Next.</li> <li>Accept the Data Storage Location default settings, click Next, and then click Finish to complete the Certificate Services installation.</li></ol> </li> <li>Stop the Certificate Services service.</li> <li>Locate the registry file that you saved in step 3, and then double-click it to import the registry settings.</li> <li>Use the Certification Authority snap-in to restore the CA database. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>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.</li> <li>Click Next, and then click Issued certificate log and pending certificate request queue.</li> <li>Type the backup folder location, and then click Next.</li> <li>Verify the backup settings. The following settings should be displayed: <ul> <li>Issued Log</li> <li>Pending Requests</li></ul> </li> <li>Click Finish, and then click Yes to restart Certificate Services when the CA database is restored.</li></ol> </li> <li>In the Certification Authority snap-in, manually add or remove certificate templates to duplicate the Certificate Templates settings that you noted in step 1.</li></ol>

Additional query words: certificate authority

Keywords: kbcertservices kbenv kbhowtomaster KB298138

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.