An internal error occurred. the private key that you are importing might require a cryptographic service provider that is not installed on your system
-
13-09-2019 - |
Question
When I compile my application , I get following compile error.
Unable to find manifest signing certificate in the certificate store.
Then I find the resolution for the above error and then try to import certificate, I am getting following error.
An internal error occurred. the private key that you are importing might require a cryptographic service provider that is not installed on your system.
I also check the folder option of MachineKeys in C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA
Solution
In the folder C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA
, make sure you have no zero-length files. Delete any you find.
OTHER TIPS
I've solved this problem by importing the PFX
certificate in Firefox and export it using the same key.
The new file will have the .p12
extension and will import ok into USER store with just a double-click.
In our case, client certificates were issued for server authentication purpose instead of client authentication purpose. Instead of having purpose to prove your identity to a remote computer
client certificates have purpose to ensure the identity of a remote computer
Certificate's property "Enhanced Key Usage" was "Server Authentication (1.3.6.1.5.5.7.3.1)", instead of "Client Authentication (1.3.6.1.5.5.7.3.2)"