testing smart card minidriver
when testing smart card minidriver in windows 7, got the following errors: "cmck exec Reconnect" always show that Testing through CAPI calls Submitting CSP PIN for reader \\.\DMWZ ESAFE 0\ CryptAcquireContext - CRYPT_NEWKEYSET CryptGenKey Reconnecting CryptAcquireContext - CRYPT_DELETEKEYSET CryptAcquireContext failed unexpectedly d:\5429t\testsrc\dstest\security\core\credentials\smartcard\cmck\cmck\fnreconnect.cpp Line: 264 WIN32 0x80090016 Keyset does not exist. in windows xp, it always passed. i have no idea! this is my log. in XP: /* P:608 T:3380 8-30-203 CardAcquireContext(): *BEGIN* /* P:608 T:3380 8-30-203 CardAcquireContext(): *SUCCESS* /* P:608 T:3380 8-30-203 CardAcquireContext(): *BEGIN* /* P:608 T:3380 8-30-203 CardAcquireContext(): *SUCCESS* /* P:608 T:3380 8-31-750 CardAcquireContext(): *BEGIN* /* P:608 T:3380 8-31-765 CardAcquireContext(): *SUCCESS* /* P:608 T:3380 8-31-765 CardDeleteContext(): *BEGIN* /* P:608 T:3380 8-31-765 CardDeleteContext(): *SUCCESS* /* P:608 T:3380 8-31-765 CardAcquireContext(): *BEGIN* /* P:608 T:3380 8-31-765 CardAcquireContext(): *SUCCESS* /* P:608 T:3380 8-31-765 CardDeleteContext(): *BEGIN* /* P:608 T:3380 8-31-781 CardDeleteContext(): *SUCCESS* /* P:608 T:3380 8-31-781 CardAcquireContext(): *BEGIN* /* P:608 T:3380 8-31-781 CardAcquireContext(): *SUCCESS* /* P:608 T:3380 8-31-781 CardGetChallenge(): *BEGIN* /* P:608 T:3380 CardGetChallenge(): Challenge = CE568537C1BC9318 */ /* P:608 T:3380 8-31-781 CardGetChallenge(): *SUCCESS* /* P:608 T:3380 8-31-796 CardAuthenticateChallenge(): *BEGIN* /* P:608 T:3380 CardAuthenticateChallenge(): Response = B99E85F50E1F5C29 */ /* P:608 T:3380 8-31-796 CardAuthenticateChallenge(): *SUCCESS* /* P:608 T:3380 8-31-812 CardDeauthenticate(): *BEGIN* /* P:608 T:3380 8-31-812 CardDeauthenticate(): *SUCCESS* /* P:608 T:3380 8-31-812 CardAuthenticatePin(): *BEGIN* /* P:608 T:3380 CardAuthenticatePin(): User PIN = 0000 */ /* P:608 T:3380 8-31-828 CardAuthenticatePin(): *SUCCESS* /* P:608 T:3380 8-31-828 CardDeauthenticate(): *BEGIN* /* P:608 T:3380 8-31-843 CardDeauthenticate(): *SUCCESS* /* P:608 T:3380 8-31-843 CardDeleteContext(): *BEGIN* /* P:608 T:3380 8-31-843 CardDeleteContext(): *SUCCESS* /* P:608 T:3380 8-31-859 CardAcquireContext(): *BEGIN* /* P:608 T:3380 8-31-859 CardAcquireContext(): *SUCCESS* /* P:608 T:3380 8-31-859 CardAuthenticatePin(): *BEGIN* /* P:608 T:3380 CardAuthenticatePin(): User PIN = 0000 */ /* P:608 T:3380 8-31-875 CardAuthenticatePin(): *SUCCESS* /* P:608 T:3380 8-31-875 CardQueryCapabilities(): *BEGIN* /* P:608 T:3380 8-31-875 CardQueryCapabilities(): *SUCCESS* /* P:608 T:3380 8-31-890 CardAuthenticatePin(): *BEGIN* /* P:608 T:3380 CardAuthenticatePin(): User PIN = 0000 */ /* P:608 T:3380 8-31-906 CardAuthenticatePin(): *SUCCESS* /* P:608 T:3380 8-31-906 CardDeauthenticate(): *BEGIN* /* P:608 T:3380 8-31-921 CardDeauthenticate(): *SUCCESS* /* P:608 T:3380 8-31-921 CardDeleteContext(): *BEGIN* /* P:608 T:3380 8-31-921 CardDeleteContext(): *SUCCESS* /* P:608 T:3380 8-32-0 CardAcquireContext(): *BEGIN* /* P:608 T:3380 8-32-0 CardAcquireContext(): *SUCCESS* /* P:608 T:3380 8-32-0 CardReadFile(): *BEGIN* /* P:608 T:3380 CardReadFile(): Dir Name = ROOT, File Name = cardid */ /* P:608 T:3380 CardReadFile(): cardid = 34646533393531342D643465662D3432 */ /* P:608 T:3380 8-32-46 CardReadFile(): *SUCCESS* /* P:608 T:3380 8-32-62 CardReadFile(): *BEGIN* /* P:608 T:3380 CardReadFile(): Dir Name = ROOT, File Name = cardcf */ /* P:608 T:3380 CardReadFile(): cardcf = 000000000000 */ /* P:608 T:3380 8-32-109 CardReadFile(): *SUCCESS* /* P:608 T:3380 8-32-109 CardReadFile(): *BEGIN* /* P:608 T:3380 CardReadFile(): Dir Name = mscp, File Name = cmapfile */ /* P:608 T:3380 8-32-187 CardReadFile(): *BEGIN* /* P:608 T:3380 CardReadFile(): Dir Name = ROOT, File Name = cardcf */ /* P:608 T:3380 CardReadFile(): cardcf = 000000000000 */ /* P:608 T:3380 8-32-234 CardReadFile(): *SUCCESS* /* P:608 T:3380 8-32-250 CardAuthenticatePin(): *BEGIN* /* P:608 T:3380 CardAuthenticatePin(): User PIN = 0000 */ /* P:608 T:3380 8-32-265 CardAuthenticatePin(): *SUCCESS* /* P:608 T:3380 8-32-265 CardDeauthenticate(): *BEGIN* /* P:608 T:3380 8-32-281 CardDeauthenticate(): *SUCCESS* /* P:608 T:3380 8-32-281 CardReadFile(): *BEGIN* /* P:608 T:3380 CardReadFile(): Dir Name = ROOT, File Name = cardcf */ /* P:608 T:3380 CardReadFile(): cardcf = 000000000000 */ /* P:608 T:3380 8-32-328 CardReadFile(): *SUCCESS* /* P:608 T:3380 8-32-343 CardQueryFreeSpace(): *BEGIN* /* P:608 T:3380 8-32-359 CardQueryFreeSpace(): *SUCCESS* /* P:608 T:3380 8-32-375 CardReadFile(): *BEGIN* /* P:608 T:3380 CardReadFile(): Dir Name = ROOT, File Name = cardcf */ /* P:608 T:3380 CardReadFile(): cardcf = 000000000000 */ /* P:608 T:3380 8-32-421 CardReadFile(): *SUCCESS* /* P:608 T:3380 8-32-421 CardAuthenticatePin(): *BEGIN* /* P:608 T:3380 CardAuthenticatePin(): User PIN = 0000 */ /* P:608 T:3380 8-32-453 CardAuthenticatePin(): *SUCCESS* /* P:608 T:3380 8-32-453 CardWriteFile(): *BEGIN* /* P:608 T:3380 CardWriteFile(): Dir Name = ROOT, File Name = cardcf */ /* P:608 T:3380 CardWriteFile(): cardcf = 000000000100 */ /* P:608 T:3380 8-32-531 CardWriteFile(): *SUCCESS* /* P:608 T:3380 8-32-531 CardWriteFile(): *BEGIN* /* P:608 T:3380 CardWriteFile(): Dir Name = mscp, File Name = cmapfile */ /* P:608 T:3380 CardWriteFile(): cmapfile = 660031006500300035003000300030002D0031003600380038002D0034006200380063002D0039006500300066002D003000310061006200300066006200340062003800660037000000000000000000010000000000 */ /* P:608 T:3380 8-32-921 CardWriteFile(): *SUCCESS* /* P:608 T:3380 8-32-921 CardWriteFile(): *BEGIN* /* P:608 T:3380 CardWriteFile(): Dir Name = ROOT, File Name = cardcf */ /* P:608 T:3380 CardWriteFile(): cardcf = 000000000200 */ /* P:608 T:3380 8-33-0 CardWriteFile(): *SUCCESS* /* P:608 T:3380 8-33-0 CardWriteFile(): *BEGIN* /* P:608 T:3380 CardWriteFile(): Dir Name = mscp, File Name = cmapfile */ /* P:608 T:3380 CardWriteFile(): cmapfile = 660031006500300035003000300030002D0031003600380038002D0034006200380063002D0039006500300066002D003000310061006200300066006200340062003800660037000000000000000000030000000000 */ /* P:608 T:3380 8-33-109 CardWriteFile(): *SUCCESS* /* P:608 T:3380 8-33-125 CardQueryCapabilities(): *BEGIN* /* P:608 T:3380 8-33-125 CardQueryCapabilities(): *SUCCESS* /* P:608 T:3380 8-33-125 CardWriteFile(): *BEGIN* /* P:608 T:3380 CardWriteFile(): Dir Name = ROOT, File Name = cardcf */ /* P:608 T:3380 CardWriteFile(): cardcf = 000001000200 */ /* P:608 T:3380 8-33-203 CardWriteFile(): *SUCCESS* /* P:608 T:3380 8-33-203 CardCreateContainer(): *BEGIN* /* P:608 T:3380 8-35-515 CardCreateContainer(): *SUCCESS* /* P:608 T:3380 8-35-531 CardWriteFile(): *BEGIN* /* P:608 T:3380 CardWriteFile(): Dir Name = ROOT, File Name = cardcf */ /* P:608 T:3380 CardWriteFile(): cardcf = 000001000300 */ /* P:608 T:3380 8-35-609 CardWriteFile(): *SUCCESS* /* P:608 T:3380 8-35-609 CardWriteFile(): *BEGIN* /* P:608 T:3380 CardWriteFile(): Dir Name = mscp, File Name = cmapfile */ /* P:608 T:3380 CardWriteFile(): cmapfile = 660031006500300035003000300030002D0031003600380038002D0034006200380063002D0039006500300066002D003000310061006200300066006200340062003800660037000000000000000000030000040000 */ /* P:608 T:3380 8-35-734 CardWriteFile(): *SUCCESS* /* P:608 T:3380 8-35-734 CardGetContainerInfo(): *BEGIN* /* P:608 T:3380 8-35-796 CardGetContainerInfo(): *SUCCESS* /* P:608 T:5764 8-37-296 CardDeauthenticate(): *BEGIN* /* P:608 T:5764 8-37-312 CardDeauthenticate(): *SUCCESS* /* P:608 T:3380 8-37-312 CardReadFile(): *BEGIN* /* P:608 T:3380 CardReadFile(): Dir Name = ROOT, File Name = cardcf */ /* P:608 T:3380 CardReadFile(): cardcf = 000001000300 */ /* P:608 T:3380 8-37-375 CardReadFile(): *SUCCESS* /* P:608 T:3380 8-37-375 CardReadFile(): *BEGIN* /* P:608 T:3380 CardReadFile(): Dir Name = ROOT, File Name = cardcf */ /* P:608 T:3380 CardReadFile(): cardcf = 000001000300 */ /* P:608 T:3380 8-37-437 CardReadFile(): *SUCCESS* /* P:608 T:3380 8-37-437 CardAuthenticatePin(): *BEGIN* /* P:608 T:3380 CardAuthenticatePin(): User PIN = 0000 */ /* P:608 T:3380 8-37-468 CardAuthenticatePin(): *SUCCESS* /* P:608 T:3380 8-37-484 CardWriteFile(): *BEGIN* /* P:608 T:3380 CardWriteFile(): Dir Name = ROOT, File Name = cardcf */ /* P:608 T:3380 CardWriteFile(): cardcf = 000001000400 */ /* P:608 T:3380 8-37-546 CardWriteFile(): *SUCCESS* /* P:608 T:3380 8-37-562 CardDeleteFile(): *BEGIN* /* P:608 T:3380 CardDeleteFile(): Dir Name = mscp, File Name = ksc00 */ /* P:608 T:3380 8-37-625 CardDeleteFile(): SCARD_E_FILE_NOT_FOUND (0x80100024) /* P:608 T:3380 CardDeleteFile(): *FAILED* /* P:608 T:3380 8-37-625 CardReadFile(): *BEGIN* /* P:608 T:3380 CardReadFile(): Dir Name = mscp, File Name = cmapfile */ /* P:608 T:3380 CardReadFile(): cmapfile = 660031006500300035003000300030002D0031003600380038002D0034006200380063002D0039006500300066002D003000310061006200300066006200340062003800660037000000000000000000030000040000 */ /* P:608 T:3380 8-37-718 CardReadFile(): *SUCCESS* /* P:608 T:3380 8-37-718 CardWriteFile(): *BEGIN* /* P:608 T:3380 CardWriteFile(): Dir Name = ROOT, File Name = cardcf */ /* P:608 T:3380 CardWriteFile(): cardcf = 000001000500 */ /* P:608 T:3380 8-37-796 CardWriteFile(): *SUCCESS* /* P:608 T:3380 8-37-796 CardDeleteFile(): *BEGIN* /* P:608 T:3380 CardDeleteFile(): Dir Name = mscp, File Name = kxc00 */ /* P:608 T:3380 8-37-875 CardDeleteFile(): SCARD_E_FILE_NOT_FOUND (0x80100024) /* P:608 T:3380 CardDeleteFile(): *FAILED* /* P:608 T:3380 8-37-875 CardWriteFile(): *BEGIN* /* P:608 T:3380 CardWriteFile(): Dir Name = ROOT, File Name = cardcf */ /* P:608 T:3380 CardWriteFile(): cardcf = 000002000500 */ /* P:608 T:3380 8-37-953 CardWriteFile(): *SUCCESS* /* P:608 T:3380 8-37-953 CardDeleteContainer(): *BEGIN* /* P:608 T:3380 8-38-578 CardDeleteContainer(): *SUCCESS* /* P:608 T:3380 8-38-593 CardReadFile(): *BEGIN* /* P:608 T:3380 CardReadFile(): Dir Name = mscp, File Name = cmapfile */ /* P:608 T:3380 CardReadFile(): cmapfile = 660031006500300035003000300030002D0031003600380038002D0034006200380063002D0039006500300066002D003000310061006200300066006200340062003800660037000000000000000000030000040000 */ /* P:608 T:3380 8-38-687 CardReadFile(): *SUCCESS* /* P:608 T:3380 8-38-687 CardWriteFile(): *BEGIN* /* P:608 T:3380 CardWriteFile(): Dir Name = ROOT, File Name = cardcf */ /* P:608 T:3380 CardWriteFile(): cardcf = 000002000600 */ /* P:608 T:3380 8-38-781 CardWriteFile(): *SUCCESS* /* P:608 T:3380 8-38-781 CardWriteFile(): *BEGIN* /* P:608 T:3380 CardWriteFile(): Dir Name = mscp, File Name = cmapfile */ /* P:608 T:3380 CardWriteFile(): cmapfile = 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 */ /* P:608 T:3380 8-38-906 CardWriteFile(): *SUCCESS* /* P:608 T:5764 8-40-406 CardDeauthenticate(): *BEGIN* /* P:608 T:5764 8-40-421 CardDeauthenticate(): *SUCCESS* /* P:608 T:3380 8-40-671 CardDeleteContext(): *BEGIN* /* P:608 T:3380 8-40-687 CardDeleteContext(): *SUCCESS* in windows 7: /* P:3368 T:3800 17-39-515 CardAcquireContext(): *BEGIN* /* P:3368 T:3800 17-39-515 CardAcquireContext(): *SUCCESS* /* P:3368 T:3800 17-39-515 CardAcquireContext(): *BEGIN* /* P:3368 T:3800 17-39-515 CardAcquireContext(): *SUCCESS* /* P:3368 T:3800 17-39-531 CardAcquireContext(): *BEGIN* /* P:3368 T:3800 17-39-531 CardAcquireContext(): *SUCCESS* /* P:3368 T:3800 17-39-531 CardAcquireContext(): *BEGIN* /* P:3368 T:3800 17-39-531 CardAcquireContext(): *SUCCESS* /* P:3368 T:3800 17-41-187 CardAcquireContext(): *BEGIN* /* P:3368 T:3800 17-41-187 CardAcquireContext(): *SUCCESS* /* P:3368 T:3800 17-41-187 CardDeleteContext(): *BEGIN* /* P:3368 T:3800 17-41-187 CardDeleteContext(): *SUCCESS* /* P:3368 T:3800 17-41-187 CardAcquireContext(): *BEGIN* /* P:3368 T:3800 17-41-187 CardAcquireContext(): *SUCCESS* /* P:3368 T:3800 17-41-187 CardDeleteContext(): *BEGIN* /* P:3368 T:3800 17-41-203 CardDeleteContext(): *SUCCESS* /* P:3368 T:3800 17-41-203 CardAcquireContext(): *BEGIN* /* P:3368 T:3800 17-41-203 CardAcquireContext(): *SUCCESS* /* P:3368 T:3800 17-41-203 CardDeleteContext(): *BEGIN* /* P:3368 T:3800 17-41-203 CardDeleteContext(): *SUCCESS* /* P:3368 T:3800 17-41-203 CardAcquireContext(): *BEGIN* /* P:3368 T:3800 17-41-203 CardAcquireContext(): *SUCCESS* /* P:3368 T:3800 17-41-218 CardDeleteContext(): *BEGIN* /* P:3368 T:3800 17-41-218 CardDeleteContext(): *SUCCESS* /* P:3368 T:3800 17-41-218 CardAcquireContext(): *BEGIN* /* P:3368 T:3800 17-41-218 CardAcquireContext(): *SUCCESS* /* P:3368 T:3800 17-41-218 CardGetChallenge(): *BEGIN* /* P:3368 T:3800 CardGetChallenge(): Challenge = BF830855CDCA4F0D */ /* P:3368 T:3800 17-41-234 CardGetChallenge(): *SUCCESS* /* P:3368 T:3800 17-41-234 CardAuthenticateChallenge(): *BEGIN* /* P:3368 T:3800 CardAuthenticateChallenge(): Response = A2DB6F882D402D94 */ /* P:3368 T:3800 17-41-234 CardAuthenticateChallenge(): *SUCCESS* /* P:3368 T:3800 17-41-234 CardDeauthenticate(): *BEGIN* /* P:3368 T:3800 17-41-250 CardDeauthenticate(): *SUCCESS* /* P:3368 T:3800 17-41-250 CardAuthenticatePin(): *BEGIN* /* P:3368 T:3800 CardAuthenticatePin(): User PIN = 0000 */ /* P:3368 T:3800 17-41-265 CardAuthenticatePin(): *SUCCESS* /* P:3368 T:3800 17-41-265 CardDeauthenticate(): *BEGIN* /* P:3368 T:3800 17-41-265 CardDeauthenticate(): *SUCCESS* /* P:3368 T:3800 17-41-265 CardDeleteContext(): *BEGIN* /* P:3368 T:3800 17-41-281 CardDeleteContext(): *SUCCESS* /* P:3368 T:3800 17-41-281 CardAcquireContext(): *BEGIN* /* P:3368 T:3800 17-41-281 CardAcquireContext(): *SUCCESS* /* P:3368 T:3800 17-41-281 CardAuthenticatePin(): *BEGIN* /* P:3368 T:3800 CardAuthenticatePin(): User PIN = 0000 */ /* P:3368 T:3800 17-41-296 CardAuthenticatePin(): *SUCCESS* /* P:3368 T:3800 17-41-296 CardQueryCapabilities(): *BEGIN* /* P:3368 T:3800 17-41-296 CardQueryCapabilities(): *SUCCESS* /* P:3368 T:3800 17-41-296 CardAuthenticatePin(): *BEGIN* /* P:3368 T:3800 CardAuthenticatePin(): User PIN = 0000 */ /* P:3368 T:3800 17-41-312 CardAuthenticatePin(): *SUCCESS* /* P:3368 T:3800 17-41-312 CardDeauthenticate(): *BEGIN* /* P:3368 T:3800 17-41-328 CardDeauthenticate(): *SUCCESS* /* P:3368 T:3800 17-41-328 CardDeleteContext(): *BEGIN* /* P:3368 T:3800 17-41-328 CardDeleteContext(): *SUCCESS* /* P:3368 T:3800 17-41-359 CardAcquireContext(): *BEGIN* /* P:3368 T:3800 17-41-359 CardAcquireContext(): *SUCCESS* /* P:3368 T:3800 17-41-359 CardReadFile(): *BEGIN* /* P:3368 T:3800 CardReadFile(): Dir Name = ROOT, File Name = cardid */ /* P:3368 T:3800 CardReadFile(): cardid = 34363438653733652D346430342D3463 */ /* P:3368 T:3800 17-41-406 CardReadFile(): *SUCCESS* /* P:3368 T:3800 17-41-406 CardReadFile(): *BEGIN* /* P:3368 T:3800 CardReadFile(): Dir Name = ROOT, File Name = cardcf */ /* P:3368 T:3800 CardReadFile(): cardcf = 000000000000 */ /* P:3368 T:3800 17-41-453 CardReadFile(): *SUCCESS* /* P:3368 T:3800 17-41-453 CardReadFile(): *BEGIN* /* P:3368 T:3800 CardReadFile(): Dir Name = mscp, File Name = cmapfile */ /* P:3368 T:3800 17-41-531 CardReadFile(): *BEGIN* /* P:3368 T:3800 CardReadFile(): Dir Name = ROOT, File Name = cardcf */ /* P:3368 T:3800 CardReadFile(): cardcf = 000000000000 */ /* P:3368 T:3800 17-41-593 CardReadFile(): *SUCCESS* /* P:3368 T:3800 17-41-593 CardAuthenticatePin(): *BEGIN* /* P:3368 T:3800 CardAuthenticatePin(): User PIN = 0000 */ /* P:3368 T:3800 17-41-609 CardAuthenticatePin(): *SUCCESS* /* P:3368 T:3800 17-41-609 CardDeauthenticate(): *BEGIN* /* P:3368 T:3800 17-41-609 CardDeauthenticate(): *SUCCESS* /* P:3368 T:3800 17-41-609 CardDeleteContext(): *BEGIN* /* P:3368 T:3800 17-41-625 CardDeleteContext(): *SUCCESS* /* P:3368 T:3800 17-41-625 CardAcquireContext(): *BEGIN* /* P:3368 T:3800 17-41-625 CardAcquireContext(): *SUCCESS* /* P:3368 T:3800 17-41-625 CardReadFile(): *BEGIN* /* P:3368 T:3800 CardReadFile(): Dir Name = ROOT, File Name = cardid */ /* P:3368 T:3800 CardReadFile(): cardid = 34363438653733652D346430342D3463 */ /* P:3368 T:3800 17-41-671 CardReadFile(): *SUCCESS* /* P:3368 T:3800 17-41-687 CardReadFile(): *BEGIN* /* P:3368 T:3800 CardReadFile(): Dir Name = ROOT, File Name = cardcf */ /* P:3368 T:3800 CardReadFile(): cardcf = 000000000000 */ /* P:3368 T:3800 17-41-734 CardReadFile(): *SUCCESS* /* P:3368 T:3800 17-41-734 CardQueryFreeSpace(): *BEGIN* /* P:3368 T:3800 17-41-750 CardQueryFreeSpace(): *SUCCESS* /* P:3368 T:3800 17-41-750 CardAuthenticatePin(): *BEGIN* /* P:3368 T:3800 CardAuthenticatePin(): User PIN = 0000 */ /* P:3368 T:3800 17-41-765 CardAuthenticatePin(): *SUCCESS* /* P:3368 T:3800 17-41-765 CardWriteFile(): *BEGIN* /* P:3368 T:3800 CardWriteFile(): Dir Name = ROOT, File Name = cardcf */ /* P:3368 T:3800 CardWriteFile(): cardcf = 000000000100 */ /* P:3368 T:3800 17-41-828 CardWriteFile(): *SUCCESS* /* P:3368 T:3800 17-41-828 CardWriteFile(): *BEGIN* /* P:3368 T:3800 CardWriteFile(): Dir Name = mscp, File Name = cmapfile */ /* P:3368 T:3800 CardWriteFile(): cmapfile = 370062003800640030006200390031002D0063003600650064002D0034003000650033002D0062006100610037002D006200620032003800640063003800610035003300330032000000000000000000010000000000 */ /* P:3368 T:3800 17-42-218 CardWriteFile(): *SUCCESS* /* P:3368 T:3800 17-42-234 CardWriteFile(): *BEGIN* /* P:3368 T:3800 CardWriteFile(): Dir Name = ROOT, File Name = cardcf */ /* P:3368 T:3800 CardWriteFile(): cardcf = 000000000200 */ /* P:3368 T:3800 17-42-296 CardWriteFile(): *SUCCESS* /* P:3368 T:3800 17-42-296 CardWriteFile(): *BEGIN* /* P:3368 T:3800 CardWriteFile(): Dir Name = mscp, File Name = cmapfile */ /* P:3368 T:3800 CardWriteFile(): cmapfile = 370062003800640030006200390031002D0063003600650064002D0034003000650033002D0062006100610037002D006200620032003800640063003800610035003300330032000000000000000000030000000000 */ /* P:3368 T:3800 17-42-390 CardWriteFile(): *SUCCESS* /* P:3368 T:3800 17-42-406 CardQueryCapabilities(): *BEGIN* /* P:3368 T:3800 17-42-406 CardQueryCapabilities(): *SUCCESS* /* P:3368 T:3800 17-42-406 CardWriteFile(): *BEGIN* /* P:3368 T:3800 CardWriteFile(): Dir Name = ROOT, File Name = cardcf */ /* P:3368 T:3800 CardWriteFile(): cardcf = 000001000200 */ /* P:3368 T:3800 17-42-468 CardWriteFile(): *SUCCESS* /* P:3368 T:3800 17-42-468 CardCreateContainer(): *BEGIN* /* P:3368 T:3800 17-48-421 CardCreateContainer(): *SUCCESS* /* P:3368 T:3800 17-48-437 CardWriteFile(): *BEGIN* /* P:3368 T:3800 CardWriteFile(): Dir Name = ROOT, File Name = cardcf */ /* P:3368 T:3800 CardWriteFile(): cardcf = 000001000300 */ /* P:3368 T:3800 17-48-484 CardWriteFile(): *SUCCESS* /* P:3368 T:3800 17-48-500 CardWriteFile(): *BEGIN* /* P:3368 T:3800 CardWriteFile(): Dir Name = mscp, File Name = cmapfile */ /* P:3368 T:3800 CardWriteFile(): cmapfile = 370062003800640030006200390031002D0063003600650064002D0034003000650033002D0062006100610037002D006200620032003800640063003800610035003300330032000000000000000000030000040000 */ /* P:3368 T:3800 17-48-593 CardWriteFile(): *SUCCESS* /* P:3368 T:3800 17-48-593 CardGetContainerInfo(): *BEGIN* /* P:3368 T:3800 17-48-640 CardGetContainerInfo(): *SUCCESS* /* P:3368 T:288 17-50-140 CardDeauthenticate(): *BEGIN* /* P:3368 T:288 17-50-140 CardDeauthenticate(): *SUCCESS* /* P:3368 T:3800 17-50-140 CardReadFile(): *BEGIN* /* P:3368 T:3800 CardReadFile(): Dir Name = ROOT, File Name = cardid */ /* P:3368 T:3800 CardReadFile(): cardid = 34363438653733652D346430342D3463 */ /* P:3368 T:3800 17-50-187 CardReadFile(): *SUCCESS* /* P:3368 T:3800 17-50-187 CardReadFile(): *BEGIN* /* P:3368 T:3800 CardReadFile(): Dir Name = ROOT, File Name = cardcf */ /* P:3368 T:3800 CardReadFile(): cardcf = 000001000300 */ /* P:3368 T:3800 17-50-234 CardReadFile(): *SUCCESS* /* P:3368 T:3800 17-50-234 CardReadFile(): *BEGIN* /* P:3368 T:3800 CardReadFile(): Dir Name = ROOT, File Name = cardid */ /* P:3368 T:3800 CardReadFile(): cardid = 34363438653733652D346430342D3463 */ /* P:3368 T:3800 17-50-296 CardReadFile(): *SUCCESS* /* P:3368 T:3800 17-50-296 CardReadFile(): *BEGIN* /* P:3368 T:3800 CardReadFile(): Dir Name = ROOT, File Name = cardid */ /* P:3368 T:3800 CardReadFile(): cardid = 34363438653733652D346430342D3463 */ /* P:3368 T:3800 17-50-343 CardReadFile(): *SUCCESS* Comparing the two logs, it seems that in win 7 cmck always read file, read file, read file... and fail, never get into CardDeleteContainer or CardWriteFile :( Please help me!!!! Many thanks!
June 2nd, 2010 12:26pm

i 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????
Free Windows Admin Tool Kit Click here and download it now
June 8th, 2010 12:31pm

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?
June 21st, 2010 11:20am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics