Microsoft Knowledge Base Email Alertz

Error message when you try to import a certificate backup file in Internet Information Services 6.0: Cannot import Key Ring backup file

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 892987 - Last Review: December 3, 2007 - Revision: 1.2

Error message when you try to import a certificate backup file in Internet Information Services 6.0: "Cannot import Key Ring backup file"

On This Page

SYMPTOMS

In Microsoft Internet Information Services (IIS) 6.0, when you try to import an IIS 4.0 certificate backup file, you may receive the following error message:
Cannot import Key Ring backup file. Either you entered the wrong password for this file or certificate is expired
You may experience this problem when the following conditions are true:
  • The certificate backup file that may be referred to as the key ring backup file exists on the target server in the certificate store.
  • You use the IIS Management Microsoft Management Console (MMC) snap-in to import the certificate backup file.

CAUSE

This problem occurs because the IIS Management MMC snap-in does not correctly handle errors that are returned by CryptoAPI when you perform a certificate import.

WORKAROUND

To work around this problem, use one of the following methods:

Method 1

Delete the existing copy of the certificate from the local computer store. Then, import the key ring backup file by using the IIS MMC snap-in. To import a key file from another server, follow these steps:
  1. Click Start, click Run, type mmc, and then click OK.
  2. Click the Personal folder.
  3. Right-click All Tasks, and then click Import.
  4. In the Import Wizard, click Next.
  5. Make sure that the key file is listed, and then click Next.
  6. Type the password for this file.
  7. Click to select the Mark the private key as exportable check box.
  8. Leave the import setting as Automatically, and then click Next.
  9. Click Finish.

Method 1

Follow these steps to make sure that the certificate in question is already in the local store:
  1. In the Computer Management tool, expand Services and Applications, expand Internet Information Services (IIS) Manager, and then expand Web Sites.
  2. Locate your Web site, right-click the Web site, and then click Properties.
  3. In the YourWebSite Properties dialog box, click the Directory Security tab, and then click Server Certificate.
  4. In the Welcome to the Web Server Certificate Wizard, click Next, click Assign an existing certificate, and then click Next.

    The certificate in question should appear in the IIS Certificate Wizard.

APPLIES TO
  • Microsoft Internet Information Services 6.0
Keywords: 
kbprb KB892987
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate