Discussion:
SmartCard Minidriver - first steps?
(too old to reply)
Hannes
2009-08-31 13:46:07 UTC
Permalink
Hi,

We are developing a minidriver for a smartcard on Windows 7.
Although our Cryptography/Calais registry entries seem correct, we do not
see any evidence of our driver actually being loading and executed.

Is there any way to debug or follow the mechanism in Windows that selects
and loads our DLL? Does it log messages anywhere?

/ Hannes.


Registry info is as follows:
######################################
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Calais\SmartCards\OurCard]
"ATR"=hex:<atr values go here>
"ATRMask"=hex:<atr values go here>
"Crypto Provider"="Microsoft Base Smart Card Crypto Provider"
"Smart Card Key Storage Provider"="Microsoft Smart Card Key Storage Provider"
"80000001"="ourminidriver.dll"
######################################



certutil -scinfo output is as follows:
######################################
The Microsoft Smart Card Resource Manager is running.
Current reader/card status:
Readers: 1
0: Our USB Reader 0
--- Reader: Our USB Reader 0
--- Status: SCARD_STATE_PRESENT | SCARD_STATE_UNPOWERED
--- Status: The card is available for use.
--- Card: OurCard
--- ATR:
<atr values go here>


=======================================================
Analyzing card in reader: Our USB Reader 0

--------------===========================--------------
================ Certificate 0 ================
--- Reader: Our USB Reader 0
--- Card: OurCard
Provider = Microsoft Base Smart Card Crypto Provider
Key Container = (null) [Default Container]

Cannot open the AT_SIGNATURE key for reader: Our USB Reader 0
Cannot open the AT_KEYEXCHANGE key for reader: Our USB Reader 0

--------------===========================--------------
================ Certificate 0 ================
--- Reader: Our USB Reader 0
--- Card: OurCard
Provider = Microsoft Smart Card Key Storage Provider
Key Container = (null) [Default Container]

Cannot open the key for reader: Our USB Reader 0

--------------===========================--------------

Done.
CertUtil: -SCInfo command completed successfully.
######################################
e***@gmail.com
2014-04-23 05:54:37 UTC
Permalink
Post by Hannes
Hi,
We are developing a minidriver for a smartcard on Windows 7.
Although our Cryptography/Calais registry entries seem correct, we do not
see any evidence of our driver actually being loading and executed.
Is there any way to debug or follow the mechanism in Windows that selects
and loads our DLL? Does it log messages anywhere?
/ Hannes.
######################################
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Calais\SmartCards\OurCard]
"ATR"=hex:<atr values go here>
"ATRMask"=hex:<atr values go here>
"Crypto Provider"="Microsoft Base Smart Card Crypto Provider"
"Smart Card Key Storage Provider"="Microsoft Smart Card Key Storage Provider"
"80000001"="ourminidriver.dll"
######################################
######################################
The Microsoft Smart Card Resource Manager is running.
Readers: 1
0: Our USB Reader 0
--- Reader: Our USB Reader 0
--- Status: SCARD_STATE_PRESENT | SCARD_STATE_UNPOWERED
--- Status: The card is available for use.
--- Card: OurCard
<atr values go here>
=======================================================
Analyzing card in reader: Our USB Reader 0
--------------===========================--------------
================ Certificate 0 ================
--- Reader: Our USB Reader 0
--- Card: OurCard
Provider = Microsoft Base Smart Card Crypto Provider
Key Container = (null) [Default Container]
Cannot open the AT_SIGNATURE key for reader: Our USB Reader 0
Cannot open the AT_KEYEXCHANGE key for reader: Our USB Reader 0
--------------===========================--------------
================ Certificate 0 ================
--- Reader: Our USB Reader 0
--- Card: OurCard
Provider = Microsoft Smart Card Key Storage Provider
Key Container = (null) [Default Container]
Cannot open the key for reader: Our USB Reader 0
--------------===========================--------------
Done.
CertUtil: -SCInfo command completed successfully.
######################################
Hi,

Did you success with it?

Loading...