Microsoft Knowledge Base Email Alertz

You receive an error message when you try to import an SSL private key certificate (.pfx) file into the local computer personal certificate store by using IIS Manager

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

You receive an error message when you try to import an SSL private key certificate (.pfx) file into the local computer personal certificate store by using IIS Manager

Article ID: 919074 - View products that this article applies to.
Important This article contains information about how to modify the registry. Make sure to 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

On This Page

SYMPTOMS

You try to import a Secure Sockets Layer (SSL) private key certificate (.pfx) file into the local computer personal certificate store. When you do this, you may experience one of the following symptoms depending on how you try to import the .pfx file:
  • If you try to import the .pfx file by using Microsoft Internet Information Services (IIS) Manager, you receive the following error message:
    Cannot import pfx file. Either you entered wrong password for this file or the certificate has expired.
  • If you try to import the .pfx file by using the Certificates Microsoft Management Console (MMC) snap-in, you receive the following error message:
    An internal error occurred. This can be either the user profile is not accessible or the private key that you are importing might require a cryptographic service provider that is not installed on your system.

CAUSE

This behavior occurs when one or more of the following conditions are true:
  • You have insufficient permissions to access the DriveLetter:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys folder on the computer.
  • A third-party registry subkey exists that prevents IIS from accessing the cryptographic service provider.
  • You are logged on to the computer remotely through a Terminal Services session, and the user profile is not stored locally on the server that has Terminal Services enabled.

RESOLUTION

To resolve this behavior, use one or more of the following methods, as appropriate for your situation.

Method 1: Set the correct permissions for the MachineKeys folder

If you have insufficient permissions to access the DriveLetter:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys folder on the computer, set the correct permissions for the folder. For more information about how to set the permissions for the MachineKeys folder, click the following article number to view the article in the Microsoft Knowledge Base:
278381 Default permissions for the MachineKeys folders

Method 2: Delete the third-party registry subkey

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 your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

If the following registry subkey exists, delete it:
HKEY_USERS\Default\Software\Microsoft\Cryptography\Providers\Type 001
After you delete this registry subkey, IIS can access the cryptographic service provider.

Method 3: Store the user profile for the Terminal Services session locally

If the user profile for the Terminal Services session is not stored locally on the server that has Terminal Services enabled, move the user profile to the server that has Terminal Services enabled. Alternatively, use roaming profiles. For more information about how to set up and administer user profiles, visit the following Microsoft Web site:
http://technet2.microsoft.com/WindowsServer/en/library/23ee2a30-5883-4ffa-b4cf-4cfff3ff8cb71033.mspx

STATUS

This behavior is by design.

Properties

Article ID: 919074 - Last Review: December 3, 2007 - Revision: 1.2
APPLIES TO
  • Microsoft Internet Information Services 6.0
  • Microsoft Internet Information Services 5.0
  • Microsoft Internet Information Services 5.1
Keywords: 
kbtshoot kbprb KB919074
       

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

dmitriy Report As Irrelevant  
Written: 1/30/2007 6:59 PM
thanks guys, method 1 above worked like magic! your help is appreciated

Brad Report As Irrelevant  
Written: 8/7/2008 2:49 PM
outstanding, method 1 solved my problems as well

asd Report As Irrelevant  
Written: 9/25/2009 1:10 AM
testing the url