#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2011
    Posts
    289
    Rep Power
    45

    Need Help with Crypto Error


    I am doing some developement work with TLS using SCHANNEL. It was working just fine for the longest time, but now it returns "Error 8009001A Keyset as registered is invalid" whenever I attempt to use type 12 (PROV_RSA_SCHANNEL) when calling CryptAcquireContext. If I change the type to 1 (PROV_RSA_FULL), I can EnumCspProvider, and it says that it is available:
    Provider Type Provider Name
    ------------- -----------------
    1 Microsoft Base Cryptographic Provider v1.0
    13 Microsoft Base DSS and Diffie-Hellman Cryptographic Provider
    3 Microsoft Base DSS Cryptographic Provider
    1 Microsoft Base Smart Card Crypto Provider
    18 Microsoft DH SChannel Cryptographic Provider
    1 Microsoft Enhanced Cryptographic Provider v1.0
    13 Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider
    24 Microsoft Enhanced RSA and AES Cryptographic Provider
    12 Microsoft RSA SChannel Cryptographic Provider
    1 Microsoft Strong Cryptographic Provider

    Exhaustive searching has not provided a clue as to what is causing this error. Everything works on another 32 bit Vista Pro, but not on my development system. I am getting desperate as I am at a complete standstill until this error is corrected.

    J.A. Coutts
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2011
    Posts
    289
    Rep Power
    45
    Solution found, but not the reason. Looking in the directory C:\Users\<userid>\AppData\Roaming\Microsoft\Crypto\RSA\S-1-5-21-1856060642-3181273466-4167654928-1000 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

IMN logo majestic logo threadwatch logo seochat tools logo