RSACryptoServiceProvider fails if we delete a user from the machine

Hi all, The other day a customer of mine had an interesting issue: a specific user runs their application for the first time without problem on a machine. Any other user can run the app without problems on the same machine, too. If that specific user is deleted from the machine, any other user will…


CryptSignHash fails with NTE_BAD_KEYSET

Hi all, The other day I worked on the following issue: a customer of mine had developed an ActiveX which they used to sign some data in Internet Explorer. Their signing code was based on CryptoAPI and worked just fine with some certs, but failed with others with a NTE_BAD_KEYSET error. So we took some traces with…


How to sign EXE files with an Authenticode certificate (part 2)

Hi all, welcome back, The other day a customer of mine was having an issue with SignTool.exe when signing an EXE file. The EXE file was getting corrupted/unusable after signing it. When troubleshooting this issue, I had the chance to play a bit more with SignTool and check what it does behind the scenes. Note: I…