Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help/Advice needed with Smart Card Minidriver: sending Cert ksc00

187 views
Skip to first unread message

Randy

unread,
Oct 3, 2008, 2:51:58 PM10/3/08
to rde...@xtec.com
I’m testing the minidriver with certutil –scinfo
and I get an execption saying “The exception
Privileged instruction. (0xc0000096) occurred
in the application at location 0x00ed4dc2.”
This is the output of the log file for the
minidriver.

DllMain: DLL_PROCESS_ATTACH
CardAcquireContext
CardReadFile: /cardid
CardReadFile: /cardcf
CardReadFile: /mscp/cmapfile
CardReadFile: /cardcf
CardGetContainerInfo
CardReadFile: /mscp/ksc00
CardQueryCapabilities
DllMain: DLL_PROCESS_DETACH

I think based on the output from certutil that
it’s the format in which I’m passing the
certificate. I’m currently emulating the
process so I’m simply reading the proper
certificate from a file(not from card yet)
and sending it along with the lengh. This
is the proper cert, its PUBLICKEYBLOB was
sent successfully in CardGetContainerInfo…

I noticed that I can save the certificate
(copy to file button under details tab)
in 3 different ways, DER, Base64 & PKCS#7.
This is what gives me doubts, I tried all
three but I'm wondering if there is a
special structure that it's specting from
CardReadFile(ksc00), just like when it
reads the /mscp/cmapfile????

Here is the output of certutil -scinfo:

402.203.0: 0x80070057 (WIN32: 87): ..CertCli Version
The Microsoft Smart Card Resource Manager is running.
Current reader/card status:
Readers: 1
0: SCM Microsystems Inc. SCR331-DI Smart Card Reader 0
--- Reader: SCM Microsystems Inc. SCR331-DI Smart Card Reader 0
--- Status: SCARD_STATE_PRESENT | SCARD_STATE_INUSE
--- Status: The card is being shared by a process.
--- Card: My Test Card

=======================================================
Analyzing card in reader: SCM Microsystems Inc. SCR331-DI Smart Card
Reader 0
317.525.0: 0x80090005 (-2146893819)
No AT_SIGNATURE cert retrieved for reader: SCM Microsystems Inc.
SCR331-DI Smart Card Reader 0
317.840.0: 0x80090005 (-2146893819)
317.985.0: 0x80090005 (-2146893819)
CryptGetUserKey: Key does not exist. 0x8009000d (-2146893811)
No AT_KEYEXCHANGE key for reader: SCM Microsystems Inc. SCR331-DI
Smart Card Reader 0
317.1046.0: 0x80090005 (-2146893819)
317.1100.0: 0x80090005 (-2146893819)

Done.
CertUtil: -SCInfo command FAILED: 0x80090005 (-2146893819)
CertUtil: Bad Data.
301.3128.0: 0x80090005 (-2146893819)


-Randy

Randy

unread,
Oct 6, 2008, 10:36:07 AM10/6/08
to
Still stuck sending the cert, at least I think that's where the
problem is.

Any help will be appreciated.....thx.

Randy

unread,
Oct 8, 2008, 5:28:17 PM10/8/08
to
Nevermind, figured it out......
0 new messages