Skip to content

Instantly share code, notes, and snippets.

View senortestamarck's full-sized avatar

senortestamarck

View GitHub Profile
P:27538; T:0x140345080666240 17:06:40.212 [opensc-pkcs11] ctx.c:858:sc_context_create: ===================================
P:27538; T:0x140345080666240 17:06:40.212 [opensc-pkcs11] ctx.c:859:sc_context_create: opensc version: 0.23.0
P:27538; T:0x140345080666240 17:06:40.212 [opensc-pkcs11] reader-pcsc.c:896:pcsc_init: PC/SC options: connect_exclusive=0 disconnect_action=0 transaction_end_action=0 reconnect_action=0 enable_pinpad=1 enable_pace=1
P:27538; T:0x140345080666240 17:06:40.212 [opensc-pkcs11] reader-pcsc.c:1376:pcsc_detect_readers: called
P:27538; T:0x140345080666240 17:06:40.212 [opensc-pkcs11] reader-pcsc.c:1389:pcsc_detect_readers: Probing PC/SC readers
P:27538; T:0x140345080666240 17:06:40.212 [opensc-pkcs11] reader-pcsc.c:1442:pcsc_detect_readers: Establish PC/SC context
P:27538; T:0x140345080666240 17:06:40.213 [opensc-pkcs11] reader-pcsc.c:1325:pcsc_add_reader: Adding new PC/SC reader 'Identiv uTrust 3512 SAM slot Token [CCID Interface] (55512030608814) 00 00'
P:27538; T:0x140345080666240 17:0
00000000 pcscdaemon.c:354:main() pcscd set to foreground with debug send to stdout
00000085 configfile.l:369:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d
00000007 pcscdaemon.c:669:main() pcsc-lite 2.0.0 daemon ready.
00000073 pcscdaemon.c:752:main() Using drivers directory: /usr/local/lib/pcsc/drivers
00002369 hotplug_libudev.c:300:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000070 hotplug_libudev.c:300:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000060 hotplug_libudev.c:300:get_driver() Looking for a driver for VID: 0x04E6, PID: 0x5816, path: /dev/bus/usb/001/014
00000008 hotplug_libudev.c:419:HPAddDevice() Adding USB device: Identiv uTrust 3512 SAM slot Token
00000042 readerfactory.c:1090:RFInitializeReader() Attempting startup of Identiv uTrust 3512 SAM slot Token [CCID Interface] (55512030608814) 00 00 using /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00000099 re
*************** OpenSC PKCS#11 spy *****************
Loaded: "/usr/lib/opensc-pkcs11.so"
0: C_GetInterface
2023-12-01 16:36:42.741
[in] pInterfaceName 0000000000427685 / 7
00000000 50 4B 43 53 20 31 31 PKCS 11
[in] pVersion = NULL
[in] flags =
Returned: 0 CKR_OK
@senortestamarck
senortestamarck / spy.log
Created November 29, 2023 18:29
pkcs11-spy
*************** OpenSC PKCS#11 spy *****************
Loaded: "/usr/lib/opensc-pkcs11.so"
0: C_GetInterface
2023-11-29 18:03:23.473
[in] pInterfaceName 0000000000427685 / 7
00000000 50 4B 43 53 20 31 31 PKCS 11
[in] pVersion = NULL
[in] flags =
Returned: 0 CKR_OK
@senortestamarck
senortestamarck / pcscd.log
Created November 29, 2023 18:26
pcscd debug
00000000 debuglog.c:390:DebugLogSetLevel() debug level=debug
00000015 debuglog.c:411:DebugLogSetCategory() Debug options: APDU
00000004 [140020125571200] pcscdaemon.c:359:main() Force colored logs
00000074 [140020125571200] configfile.l:369:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d
00000008 [140020125571200] pcscdaemon.c:669:main() pcsc-lite 2.0.0 daemon ready.
00000096 [140020125571200] pcscdaemon.c:752:main() Using drivers directory: /usr/local/lib/pcsc/drivers
00000531 [140020125571200] hotplug_libudev.c:300:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000049 [140020125571200] hotplug_libudev.c:300:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000054 [140020125571200] hotplug_libudev.c:300:get_driver() Looking for a driver for VID: 0x04E6, PID: 0x5816, path: /dev/bus/usb/001/011
00000005 [140
@senortestamarck
senortestamarck / opensc_debug.log
Last active November 29, 2023 18:25
opensc debug
Linux96(root)> OPENSC_DEBUG=9 pkcs11-tool --module /usr/lib/pkcs11-spy.so -vvvvvvvvv --login --pin <pin> -k --id 01 --key-type EC:prime256v1
P:18087; T:0x139882926028928 18:03:23.474 [opensc-pkcs11] ctx.c:727:process_config_file: Used configuration file '/etc/opensc/opensc.conf'
P:18087; T:0x139882926028928 18:03:23.474 [opensc-pkcs11] ctx.c:858:sc_context_create: ===================================
P:18087; T:0x139882926028928 18:03:23.474 [opensc-pkcs11] ctx.c:859:sc_context_create: opensc version: 0.23.0
P:18087; T:0x139882926028928 18:03:23.474 [opensc-pkcs11] reader-pcsc.c:896:pcsc_init: PC/SC options: connect_exclusive=0 disconnect_action=0 transaction_end_action=0 reconnect_action=0 enable_pinpad=1 enable_pace=1
P:18087; T:0x139882926028928 18:03:23.474 [opensc-pkcs11] reader-pcsc.c:1376:pcsc_detect_readers: called
P:18087; T:0x139882926028928 18:03:23.474 [opensc-pkcs11] reader-pcsc.c:1389:pcsc_detect_readers: Probing PC/SC readers
P:18087; T:0x139882926028928 18:03:23.474 [opensc-pkcs11] reader-pcsc.