Change Administrator Key (pin) on a minidriver smart card
Hello. I have bought a smart card that is minidriver enabled. This mens it integrates beautifully with Windows 7. The user PIN can be changed with CTRL+ALT+DEL, Change password, Other credentials... However I cannot find a way to change the Administrator password (3DES key), that is used for unlocking the card (in a challenge-response kind of way). So I have two questions: 1) Is there a generic tool to change the Admin Key on a minidriver enabled smart card, and a generic tool to provide the response (to a challenge) for unblocking a smart card 2) How to develop this sort of tool Now for the second questions elaboration. I'd be completely happy (and intend) to develop a small tool to change this admin key, however I have problems finding the right documentation. The end effect must be, that the CardChangeAuthenticatorEx method is called in the smart cards minidriver .dll. This can probably be done with a combination of SCardUIDlgSelectCard and SCardGetCardTypeProviderName - to get the right .dll name - and then LoadLibrary and spoofing the Base CSPs structure and calling CardAcquireContext and then the CardChangeAuthenticatorEx pointer. Bit this all seems too low-level. What high-level (preferably, but not required, managed) API to use, to change the Admin Key? I've looked through CryptoAPI, CNG, SCard but it seems I just cant find the right one, or its not documented. Thanks for any answers. -Z
October 27th, 2010 4:08am

For development related questions, please discuss in our MSND forum. Security for Applications in Microsoft Windows Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
October 31st, 2010 11:54pm

Thank you for the tip. But what about a tool? (I presume this is the right thread for that) Traditionally tolls to manage smartcards were provide dy their manufactiors, but with minidriver the whole idea is that this part is the same for all compilent cards. Is there a tool to change the admin key on a minidriver complient card? Thanks.
November 3rd, 2010 6:58am

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

Other recent topics Other recent topics