Skip to content

Debugging

bef edited this page Nov 21, 2015 · 1 revision

Compile debug version

./configure
make clean debug

After that a detailed log file - /tmp/ck_log.txt - will be written.

Debug PKCS#11 calls

OpenSC comes with a suitable module: pkcs11-spy.so

Just use this module instead of scd-pkcs11.so and start your application like so:

PKCS11SPY=`pwd`/scd-pkcs11-Darwin-x86_64.so \
PKCS11SPY_OUTPUT=/tmp/pkcs11.log \
/Applications/Firefox.app/Contents/MacOS/firefox -P smartcard
Clone this wiki locally