List Info

Thread: Enabling log of APDUs exchanged




Enabling log of APDUs exchanged
user name
2007-02-19 15:18:06
Dear folks,

I'm trying to figure out, why my D-Trust Micardo 2.0
signature card
fails when signing using the PKCS#11 driver. Apparently the
PSO SIGN
command fails with SW1/SW2=6400.

How can I enable debugging, so that I can see the APDUs
exchanged ? I'm
using SCB 0.7 and already have debug = 6 in my opensc.conf
file, however
I see no APDUs in my log file.

Looking at the latest source (reader-pcsc.c) it should give
me a nice
trace, but it doesn't.

Any help appreciated,

Andreas

-- 

    ---------    CardContact Software & System
Consulting
   |.##> <##.|   Andreas Schwier
   |#       #|   Schülerweg 38
   |#       #|   32429 Minden, Germany
   |'##> <##'|   Phone +49 171 8334920
    ---------    http://www.cardcontact.de

_______________________________________________
opensc-devel mailing list
opensc-devellists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc
-devel

Re: Enabling log of APDUs exchanged
country flaguser name
Germany
2007-02-19 16:22:10
Andreas Schwier wrote:
> Dear folks,
> 
> I'm trying to figure out, why my D-Trust Micardo 2.0
signature card
> fails when signing using the PKCS#11 driver. Apparently
the PSO SIGN
> command fails with SW1/SW2=6400.
> 
> How can I enable debugging, so that I can see the APDUs
exchanged ? I'm
> using SCB 0.7 and already have debug = 6 in my
opensc.conf file, however
> I see no APDUs in my log file.
> 
> Looking at the latest source (reader-pcsc.c) it should
give me a nice
> trace, but it doesn't.
> 
> Any help appreciated,
> 
> Andreas

Hello Mr. Schwier,

For debugging I am usually killing my pcsc daemon and
restarting it with 
"pcscd -a -f" in a root shell terminal window.
Don't know if this is 
applicable for you.

CU,
      Frank



_______________________________________________
opensc-devel mailing list
opensc-devellists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc
-devel

Re: Enabling log of APDUs exchanged
user name
2007-02-20 01:13:18
SCB 0.7 is an oler version of opensc that needs to be
compiled with 
/DDEBUG to enable APDU logging. but it was compiled
without.
new versions of opensc remove the /DDEBUG code and PADU
logging
can be enabled with the debug level :8

Andreas
_______________________________________________
opensc-devel mailing list
opensc-devellists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc
-devel

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )