Using the OpenPGP Card on Unix && Win7

Matthias Apitz guru at unixarea.de
Tue Nov 21 09:15:07 CET 2017




Hello,

Thanks, Werner, for the helping hand. I did so to capture the log of the scdaemon.
But did not used the nice trick of TCP, because I did not wanted to have the VM
up and running and blocking the OpenPGP Card on USB. I run all the GnuPG commands
from the DOS cmd shell, only the tail of the scdaemon.log was done in Cygwin.

The scdaemon.conf used was:

$ cat /cygdrive/c/Users/apitzm/AppData/Roaming/gnupg/scdaemon.conf
log-file scdaemon.log
debug-level guru
debug-all
debug-log-tid
card-timeout 30

The produced log is:

$ cat ../AppData/Local/VirtualStore/Windows/SysWOW64/scdaemon.log
2017-11-21 08:24:04 scdaemon[3868.1] Es wird auf Socket `C:\Users\apitzm\AppData\Roaming\gnupg\S.scdaemon' gehört
2017-11-21 08:24:04 scdaemon[3868.2] Handhabungsroutine für fd -1 gestartet
2017-11-21 08:24:04 scdaemon[3868.2] DBG: chan_0x000000b0 -> OK GNU Privacy Guard's Smartcard server ready
2017-11-21 08:24:04 scdaemon[3868.2] DBG: chan_0x000000b0 <- GETINFO socket_name
2017-11-21 08:24:04 scdaemon[3868.2] DBG: chan_0x000000b0 -> D C:\Users\apitzm\AppData\Roaming\gnupg\S.scdaemon
2017-11-21 08:24:04 scdaemon[3868.2] DBG: chan_0x000000b0 -> OK
2017-11-21 08:24:04 scdaemon[3868.2] DBG: chan_0x000000b0 <- OPTION event-signal=f0
2017-11-21 08:24:04 scdaemon[3868.2] DBG: chan_0x000000b0 -> OK
2017-11-21 08:24:04 scdaemon[3868.2] DBG: chan_0x000000b0 <- serialno
2017-11-21 08:24:04 scdaemon[3868.2] DBG: enter: apdu_open_reader: portstr=(null)
2017-11-21 08:24:04 scdaemon[3868.2] detected reader 'Broadcom Corp Contacted SmartCard 0'
2017-11-21 08:24:04 scdaemon[3868.2] detected reader 'Broadcom Corp Contactless SmartCard 0'
2017-11-21 08:24:04 scdaemon[3868.2] detected reader 'BROADCOM NFC Smartcard Reader 1'
2017-11-21 08:24:04 scdaemon[3868.2] detected reader 'Identiv uTrust 3512 SAM slot Token 0'
2017-11-21 08:24:04 scdaemon[3868.2] detected reader ''
2017-11-21 08:24:04 scdaemon[3868.2] reader slot 0: not connected
2017-11-21 08:24:04 scdaemon[3868.2] DBG: leave: apdu_open_reader => slot=0 [pc/sc]
2017-11-21 08:24:04 scdaemon[3868.2] DBG: enter: apdu_connect: slot=0
2017-11-21 08:24:04 scdaemon[3868.2] pcsc_connect failed: removed card (0x80100069)
2017-11-21 08:24:04 scdaemon[3868.2] reader slot 0: not connected
2017-11-21 08:24:04 scdaemon[3868.2] DBG: leave: apdu_connect => sw=0x10008
2017-11-21 08:24:04 scdaemon[3868.2] DBG: enter: apdu_close_reader: slot=0
2017-11-21 08:24:04 scdaemon[3868.2] DBG: enter: apdu_disconnect: slot=0
2017-11-21 08:24:04 scdaemon[3868.2] DBG: leave: apdu_disconnect => sw=0x0
2017-11-21 08:24:04 scdaemon[3868.2] DBG: leave: apdu_close_reader => 0x0 (close_reader)
2017-11-21 08:24:04 scdaemon[3868.2] DBG: chan_0x000000b0 -> ERR 100696144 No such device <SCD>
2017-11-21 08:24:23 scdaemon[3868.2] DBG: chan_0x000000b0 <- RESTART
2017-11-21 08:24:23 scdaemon[3868.2] DBG: chan_0x000000b0 -> OK
2017-11-21 08:26:07 scdaemon[3868.2] DBG: chan_0x000000b0 <- serialno
2017-11-21 08:26:07 scdaemon[3868.2] DBG: enter: apdu_open_reader: portstr=(null)
2017-11-21 08:26:07 scdaemon[3868.2] detected reader 'Broadcom Corp Contacted SmartCard 0'
2017-11-21 08:26:07 scdaemon[3868.2] detected reader 'Broadcom Corp Contactless SmartCard 0'
2017-11-21 08:26:07 scdaemon[3868.2] detected reader 'BROADCOM NFC Smartcard Reader 1'
2017-11-21 08:26:07 scdaemon[3868.2] detected reader 'Identiv uTrust 3512 SAM slot Token 0'
2017-11-21 08:26:07 scdaemon[3868.2] detected reader ''
2017-11-21 08:26:07 scdaemon[3868.2] reader slot 0: not connected
2017-11-21 08:26:07 scdaemon[3868.2] DBG: leave: apdu_open_reader => slot=0 [pc/sc]
2017-11-21 08:26:07 scdaemon[3868.2] DBG: enter: apdu_connect: slot=0
2017-11-21 08:26:07 scdaemon[3868.2] pcsc_connect failed: removed card (0x80100069)
2017-11-21 08:26:07 scdaemon[3868.2] reader slot 0: not connected
2017-11-21 08:26:07 scdaemon[3868.2] DBG: leave: apdu_connect => sw=0x10008
2017-11-21 08:26:07 scdaemon[3868.2] DBG: enter: apdu_close_reader: slot=0
2017-11-21 08:26:07 scdaemon[3868.2] DBG: enter: apdu_disconnect: slot=0
2017-11-21 08:26:07 scdaemon[3868.2] DBG: leave: apdu_disconnect => sw=0x0
2017-11-21 08:26:07 scdaemon[3868.2] DBG: leave: apdu_close_reader => 0x0 (close_reader)
2017-11-21 08:26:07 scdaemon[3868.2] DBG: chan_0x000000b0 -> ERR 100696144 No such device <SCD>
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 <- help
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # NOP
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # CANCEL
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # OPTION
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # BYE
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # AUTH
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # RESET
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # END
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # HELP
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # SERIALNO [--demand=<serialno>] [<apptype>]
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # LEARN [--force] [--keypairinfo]
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # READCERT <hexified_certid>|<keyid>
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # READKEY [--advanced] <keyid>
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # SETDATA [--append] <hexstring>
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # PKSIGN [--hash=[rmd160|sha{1,224,256,384,512}|md5]] <hexified_id>
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # PKAUTH <hexified_id>
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # PKDECRYPT <hexified_id>
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # INPUT
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # OUTPUT
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # GETATTR <name>
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # SETATTR <name> <value>
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # WRITECERT <hexified_certid>
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # WRITEKEY [--force] <keyid>
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # GENKEY [--force] [--timestamp=<isodate>] <no>
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # RANDOM <nbytes>
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # PASSWD [--reset] [--nullpin] <chvno>
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # CHECKPIN <idstr>
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # LOCK [--wait]
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # UNLOCK
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # GETINFO <what>
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # RESTART
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # DISCONNECT
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # APDU [--[dump-]atr] [--more] [--exlen[=N]] [hexstring]
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> # KILLSCD
2017-11-21 08:26:46 scdaemon[3868.2] DBG: chan_0x000000b0 -> OK
2017-11-21 08:27:09 scdaemon[3868.2] DBG: chan_0x000000b0 <- restart
2017-11-21 08:27:09 scdaemon[3868.2] DBG: chan_0x000000b0 -> OK
2017-11-21 08:28:18 scdaemon[3868.2] DBG: chan_0x000000b0 <- RESTART
2017-11-21 08:28:18 scdaemon[3868.2] DBG: chan_0x000000b0 -> OK
2017-11-21 08:29:15 scdaemon[3868.2] DBG: chan_0x000000b0 <- serialno
2017-11-21 08:29:15 scdaemon[3868.2] DBG: enter: apdu_open_reader: portstr=(null)
2017-11-21 08:29:15 scdaemon[3868.2] detected reader 'Broadcom Corp Contacted SmartCard 0'
2017-11-21 08:29:15 scdaemon[3868.2] detected reader 'Broadcom Corp Contactless SmartCard 0'
2017-11-21 08:29:15 scdaemon[3868.2] detected reader 'BROADCOM NFC Smartcard Reader 1'
2017-11-21 08:29:15 scdaemon[3868.2] detected reader 'Identiv uTrust 3512 SAM slot Token 0'
2017-11-21 08:29:15 scdaemon[3868.2] detected reader ''
2017-11-21 08:29:15 scdaemon[3868.2] reader slot 0: not connected
2017-11-21 08:29:15 scdaemon[3868.2] DBG: leave: apdu_open_reader => slot=0 [pc/sc]
2017-11-21 08:29:15 scdaemon[3868.2] DBG: enter: apdu_connect: slot=0
2017-11-21 08:29:15 scdaemon[3868.2] pcsc_connect failed: removed card (0x80100069)
2017-11-21 08:29:15 scdaemon[3868.2] reader slot 0: not connected
2017-11-21 08:29:15 scdaemon[3868.2] DBG: leave: apdu_connect => sw=0x10008
2017-11-21 08:29:15 scdaemon[3868.2] DBG: enter: apdu_close_reader: slot=0
2017-11-21 08:29:15 scdaemon[3868.2] DBG: enter: apdu_disconnect: slot=0
2017-11-21 08:29:15 scdaemon[3868.2] DBG: leave: apdu_disconnect => sw=0x0
2017-11-21 08:29:15 scdaemon[3868.2] DBG: leave: apdu_close_reader => 0x0 (close_reader)
2017-11-21 08:29:15 scdaemon[3868.2] DBG: chan_0x000000b0 -> ERR 100696144 No such device <SCD>
-- 
Matthias Apitz, ✉ guru at unixarea.de, ⌂ http://www.unixarea.de/  ☎ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
8. Mai 1945: Wer nicht feiert hat den Krieg verloren.
8 de mayo de 1945: Quien no festeja perdió la Guerra.
May 8, 1945: Who does not celebrate lost the War.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20171121/98ec2faf/attachment.sig>


More information about the Gnupg-users mailing list