This article describes how to recover a private key after
you use the Certificates Microsoft Management Console (MMC) snap-in to delete
the original certificate in Internet Information Services (IIS). You delete the
original certificate from the personal folder in the local computer's
certificate store. This article assumes that you have the matching certificate
file backed up as a PKCS#7 file, as a .cer file, or as a .crt file.
When you delete a certificate on a computer that is running
any one of the following versions of Microsoft Internet Information Services
(IIS), the corresponding private key is not deleted:
- Microsoft Internet Information Services 5.0
- Microsoft Internet Information Services 5.1
- Microsoft Internet Information Services 6.0
To assign the existing private key to a new certificate, you
must use the Microsoft Windows Server 2003 version of Certutil.exe. To do this,
follow these steps:
- Log on to the computer that issued the certificate request
by using an account that has administrative permissions.
- Click Start, click Run,
type mmc, and then click OK.
- On the File menu, click
- In the Add/Remove Snap-in dialog box,
- Click Certificates, and then click
- In the Certificates snap-in dialog box,
click Computer account, and then click
- In the Select Computer dialog box, click
Local computer: (the computer this console is running on), and
then click Finish.
- Click Close, and then click
- In the Certificates snap-in, expand
Certificates, right-click the Personal
folder, point to All Tasks, and then click
- On the Welcome to the Certificate Import Wizard page, click
- On the File to Import page, click
- In the Open dialog box, click the new
certificate, click Open, and then click
- On the Certificate Store page, click
Place all certificates in the following store, and then click
- In the Select Certificate Store dialog
box, click Personal, click OK, click
Next, and then click Finish.
- In the Certificates snap-in, double-click the imported
certificate that is in the Personal folder.
- In the Certificate dialog box, click the
- Click Serial Number in the Field column of
the Details tab, highlight the serial number, and then write
down the serial number.
- Click Start, click Run,
type cmd, and then click OK.
- At the command prompt, type the
certutil -repairstore my
is the serial number that you wrote down in step 17.
- In the Certificates snap-in, right-click
Certificates, and then click Refresh.
The certificate now has an associated private key.
You can now use the IIS MMC to assign the recovered keyset
(certificate) to the Web site that you want.
information about backing up server certificates in IIS 5.0, click the
following article number to view the article in the Microsoft Knowledge Base:
How to back up a server certificate in Internet Information Services 5.0
For additional information about key archival and
management in Windows Server 2003, visit the following Microsoft Web site: