testing smart card minidriver
-
Friday, June 18, 2010 5:13 AMi test my sc minidriver with certutil tool
certutil -scinfo
or
certutil -delkey -csp "Microsoft Base Smart Card Crypto Provider" "80df03d4-70f9-4b9b-a5d4-f43e2022b3a2"
"80df03d4-70f9-4b9b-a5d4-f43e2022b3a2" is GUID of the container created by base smart card csp in cmck test.
both commands report the same error.
0x80090016 Keyset does not exist
from my minidriver log, i see that it stoped at CardReadFile("cardcf").
here is the data on my card at that moment:
"cardcf" 6 bytes 0x000001000300
"cmapfile" under "mscp" 86 bytes
0x390064003200380064003800370066002D0064003500340065002D003400
6100610031002D0039006500330035002D00330038003100330065003800
3300330032006400390063000000000000000000030000040000
i cannot see anything wrong with data cache file.
Can anybody give me some help????
All Replies
-
Monday, June 21, 2010 8:17 AM
CryptAcquireContext with CRYPT_DELETEKEYSET returns NTE_BAD_KEYSET.
CryptAcquireContext with CRYPT_NEWKEYSET returns NTE_EXISTS.
i think maybe it's related to permissions, but what is the access permission to a smart card? -
Saturday, March 17, 2012 10:23 PM
Get a look at the cmck.exe program.
See the following notes :
http://msdn.microsoft.com/en-us/library/ff560037%28VS.85%29.aspx
and
http://code.google.com/p/eid-mw/source/browse/trunk/minidriver/certification/readme.txt
regards,
vincent

