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
Any help will be appreciated.....thx.