Certificate Import Exception

Note: I have moved to blog at my own domain, so kindly visit this post over there for recent updates or comments. http://www.imranbalouch.com/blog/index.php/2011/04/certificate-import-exception/

While importing a .pfx or .p12 certificate you can come across an exception saying:

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.

The reason for this exception is that You have insufficient permissions to access the DriveLetter:Documents and SettingsAll UsersApplication DataMicrosoftCryptoRSAMachineKeys folder on the computer.

By giving correct permissions to your user on above folder you can get rid of this exception.