I had a strange problem while developing the installation, which should be at one of the stages of installing the certificate.
The problem is with providing access to the private key of certificates for the account (for example, IIS_IUSRS) in Windows Server 2008 R2. Private keys are stored in the folder C: \ Users \ All Users \ Microsoft \ Crypto \ RSA \ MachineKeys.
The C # custom installation project imports the certificate and provides access to the account in the private key of the certificates during the installation process. After some time (2-3 seconds), the private key file is automatically deleted from the MachineKeys folder. Therefore, the installed web application cannot access a specific certificate and displays the following error message:
"System.Security.Cryptography.CryptographicException: Keyset does not exist." This error only occurs in Windows Server 2008 R2, whereas for Windows Server 2003 everything works correctly.
My question is: why is the private key deleted and what process does it?
thank
UPDATE 05/17/2012
I have not yet found a solution to the described problem, and in the other forums on which I requested (forums.asp.net, social.msdn.microsoft.com), there was no answer. So, can anyone suggest any other resources or recommendations for further fixing this issue?
Thanks again
source
share