This article was previously published under Q232137
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
When you use Internet Information Services (IIS) version 5.0, you may want to restore a server certificate, for example, if you are migrating one Web site to another server in a Web farm. This task is very easy to do using the Web Site Certificate Wizard and the Certificate Manager Import Wizard provided to you by Windows 2000 and IIS 5.0.
In order to complete this operation, you must have a backup of the server certificate (and private key) contained in a PFX file. For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
232136 Back Up a Server Certificate in Internet Information Services 5.0
You must also have access to the Certificates snap-in and have it set to view computer certificates from the local computer (though this can be done remotely).
In order to view the Certificates store on the local computer, perform the following steps:
Click Start, and then click Run.
Type "MMC.EXE" (without the quotation marks) and click OK.
Click Console in the new MMC you created, and then click Add/Remove Snap-in.
In the new window, click Add.
Highlight the Certificates snap-in, and then click Add.
Choose the Computer option and click Next.
Select Local Computer on the next screen, and then click OK.
Click Close , and then click OK.
You have now added the Certificates snap-in, which will allow you to work with any certificates in your computer's certificate store. You may want to save this MMC for later use.
Now that you have access to the Certificates snap-in, you can import the server certificate into you computer's certificate store by following these steps:
Open the Certificates (Local Computer) snap-in and navigate to Personal, and then Certificates.
Note: Certificates may not be listed. If it is not, that is because there are no certificates installed.
Right-click Certificates (or Personal if that option does not exist.)
Choose All Tasks, and then click Import.
When the wizard starts, click Next. Browse to the PFX file you created containing your server certificate and private key. Click Next.
Enter the password you gave the PFX file when you created it. Be sure the Mark the key as exportable option is selected if you want to be able to export the key pair again from this computer. As an added security measure, you may want to leave this option unchecked to ensure that no one can make a backup of your private key.
Click Next, and then choose the Certificate Store you want to save the certificate to. You should select Personal because it is a Web server certificate. If you included the certificates in the certification hierarchy, it will also be added to this store.
Click Next. You should see a summary of screen showing what the wizard is about to do. If this information is correct, click Finish.
You will now see the server certificate for your Web server in the list of Personal Certificates. It will be denoted by the common name of the server (found in the subject section of the certificate).
Now that you have the certificate backup imported into the certificate store, you can enable Internet Information Services 5.0 to use that certificate (and the corresponding private key). To do this, perform the following steps:
Open the Internet Services Manager (under Administrative Tools) and navigate to the Web site you want to enable secure communications (SSL/TLS) on.
Right-click on the site and click Properties.
You should now see the properties screen for the Web site. Click the Directory Security tab.
Under the Secure Communications section, click Server Certificate.
This will start the Web Site Certificate Wizard. Click Next.
Choose the Assign an existing certificate option and click Next.
You will now see a screen showing that contents of your computer's personal certificate store. Highlight your Web server certificate (denoted by the common name), and then click Next.
You will now see a summary screen showing you all the details about the certificate you are installing. Be sure that this information is correct or you may have problems using SSL or TLS in HTTP communications.
Click Next, and then click OK to exit the wizard.
You should now have an SSL/TLS-enabled Web server. Be sure to protect your PFX files from any unwanted personnel.
For additional information on backing up certificate files, click the article number below to view the article in the Microsoft Knowledge Base:
232136 HOW TO: Back Up a Server Certificate in Internet Information Services 5.0