I’m using Belgian ID card to sign some stuff. The example sign_csp in the SDK failed with this error : CryptoAcquireFailed. Error=80090019.
//Get a context
if (!CryptAcquireContext(out hprov, container, provider, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT))
{
MessageBox.Show("CryptAcquireContext failed.\n\n(Error=" + Marshal.GetLastWin32Error().ToString("x") + ")");
return;
}
provider = “Belgium Identity Card CSP”
I’m on Windows 7 64 bit. The program is built for x86.
Thanks!
Have you installed the CSP correctly?
Verify that you have the following key in the registry:
and that the
Image Pathentry contains the correct path to the CSP-dll.