CryptoAPI Tracer script

Hi, welcome back, As I promised in my previous post, How to trace CryptoAPI calls, I’m posting the complete script I’m developing to trace all CryptoAPI calls being made by an application. This script shows the In & Out parameters being passed to the API, the result of calling the API, and in case of error,…


How to trace CryptoAPI calls

Hi, welcome back, An application may use CryptoAPI without us developers realizing it. Security classes in .NET Framework use CryptoAPI behind the scenes. CAPICOM.dll uses it, too. The issue appears when the API returns an error which can help us to find the real cause of the issue, but the code calling it captures the…


RSACryptoServiceProvider fails when used with mandatory profiles

Hi, welcome back, I will talk today about a very common issue we face when we try to use .NET’s RSACryptoServiceProvider (http://msdn2.microsoft.com/en-us/library/system.security.cryptography.rsacryptoserviceprovider.aspx) class with mandatory profiles (i.e. Citrix environment). When we try to create a new RSACryptoServiceProvider object in this scenario, we get the following exception: “System.Security.Cryptography.CryptographicException: Cryptographic Service Provider (CSP) for this implementation could not…


CAPICOM support on Windows Vista

I know there has been a lot of confusion about this, because some articles on the web (i.e. MSDN) say CAPICOM is not supported on Vista, while others say it is. I have good news for you people, especially for those who want to do cryptographic operations from scripting: CAPICOM is officially supported on Vista,…