locked
Is it safe to delete the files found in ..\rsa\crypto\? RRS feed

  • Question

  • All,

    We use an application that uses .NET to decrypt data.  “Every now and then” the application stops with and error related to RSA.  The fix we have is to delete the files in c:\ C:\Users\<user>\AppData\Roaming\Microsoft\Crypto\RSA\S-1-5-21-2949292171-3919185263-3846045818-1156.  This seems to work but its getting old.  I would rather know what could cause the error so we can stop this hack.  The only error we get from the vendors software is “invalid parameter”.  I’m sure “something” on the workstation changes to cause this just don’t know what.  Any help would be appreciated.

    Steve


    Steve

    Wednesday, June 12, 2013 8:42 PM

All replies

  • Thank you Steve for this information. I have been struggling for several days now with an Error 8009001A: Keyset as registered is invalid. This error occurred when I attempted to use type 12 (PROV_RSA_SCHANNEL) when calling CryptAcquireContext. Looking in the directory that you mentioned showed a file that corresponded to the date the problem started:

    06/10/13  11:17 PM             2,088 e9255a5a03cbd274a60d4014d38ca063_7658be33-9e33-47f7-8fcf-34573c36f76c

    Deleting this file corrected the problem. Now if I only knew why, it would help tremendously.

    J.A. Coutts

    Friday, June 14, 2013 1:06 AM
  • Glad I could indirectly help.  Wish I knew what caused this as well....

    Steve


    Steve

    Friday, June 14, 2013 1:18 AM
  • The only information I could find about this directory is here:

    http://technet.microsoft.com/en-us/library/cc962112.aspx

    This article covers pre Vista machines, so the directory locations are somewhat different, but this is the storage location for private keys. It states that both the Base and Enhanced CSP keys are located here, and I am presuming that the same exists for Secure Channel. It also hints that these keys are periodically updated, and I assume that the file became corrupted during one of these updates. I have 12 other key files in that directory, and deleting the problem key forced it to generate a new one.

    This is all conjecture on my part, as there is very little information available.

    J.A. Coutts

    Friday, June 14, 2013 6:48 AM
  • Thank you J.A.Coutts,

    Yea - I know what they are.  My "guess" was one was corrupt and causing an unusual error.  I deleted all the files before in an emergency and have seen them get auto-recreated as expected.  Just need something a reason why they go bad.

    Thanks for the link.

    Steve

       


    Steve

    Friday, June 14, 2013 12:42 PM
  • marco

    Steve

    Thursday, June 20, 2013 8:26 PM