gpg-agent has to be restarted after GnuPG SmartCard pulled from reader

gnupg-users.dirk at o.banes.ch gnupg-users.dirk at o.banes.ch
Wed Jan 4 21:14:46 CET 2017


Hi Peter,

thanks for you reply but it is now not working at all. Even if my reader
- Ominkey 3121 is listed in you link.

o.k. I removed pcscd and changed the scdaemon.conf to this:
card-timeout 5
#disable-ccid
debug-level basic
log-file /home/dirk/scdaemon.log
debug-ccid-driver

scdaemon Log

2017-01-04 21:08:31 scdaemon[3398] listening on socket
'/run/user/1000/gnupg/S.scdaemon'
2017-01-04 21:08:31 scdaemon[3398] handler for fd -1 started
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver: using CCID reader 0
(ID=076B:3022:X:0)
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver: idVendor: 076B 
idProduct: 3022  bcdDevice: 0204
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver: ChipCard Interface
Descriptor:
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
bLength                54
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
bDescriptorType        33
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
bcdCCID              1.00
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
nMaxSlotIndex           0
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
bVoltageSupport         7  ?
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
dwProtocols             3  T=0 T=1
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
dwDefaultClock       4800
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
dwMaxiumumClock      8000
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
bNumClockSupported      4
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
dwDataRate          10752 bps
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
dwMaxDataRate      412903 bps
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
bNumDataRatesSupp.    106
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
dwMaxIFSD             492
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:   dwSyncProtocols 
00000007  2-wire 3-wire I2C
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:   dwMechanical    
00000000
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:   dwFeatures      
000407B2
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:     Auto
configuration based on ATR (assumes auto voltage)
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:     Auto clock change
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:     Auto baud rate
change
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:     Auto PPS made
by CCID
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:     CCID can set
ICC in clock stop mode
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:     NAD value other
than 0x00 accepted
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:     Auto IFSD exchange
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:     Short and
extended APDU level exchange
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
dwMaxCCIDMsgLen       502
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
bClassGetResponse    echo
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
bClassEnvelope       echo
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
wlcdLayout           none
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
bPINSupport             0
2017-01-04 21:08:31 scdaemon[3398] DBG: ccid-driver:  
bMaxCCIDBusySlots       1
2017-01-04 21:08:36 scdaemon[3398] DBG: ccid-driver: usb_bulk_write
error: LIBUSB_ERROR_TIMEOUT
2017-01-04 21:08:36 scdaemon[3398] reader slot 0: using ccid driver
2017-01-04 21:08:36 scdaemon[3398] DBG: chan_5 -> OK GNU Privacy Guard's
Smartcard server ready
2017-01-04 21:08:41 scdaemon[3398] DBG: ccid-driver: usb_bulk_write
error: LIBUSB_ERROR_TIMEOUT
2017-01-04 21:08:41 scdaemon[3398] DBG: chan_5 <- GETINFO socket_name
2017-01-04 21:08:41 scdaemon[3398] DBG: chan_5 -> D
/run/user/1000/gnupg/S.scdaemon
2017-01-04 21:08:41 scdaemon[3398] DBG: chan_5 -> OK
2017-01-04 21:08:41 scdaemon[3398] DBG: chan_5 <- OPTION event-signal=12
2017-01-04 21:08:41 scdaemon[3398] DBG: chan_5 -> OK
2017-01-04 21:08:41 scdaemon[3398] DBG: chan_5 <- GETINFO version
2017-01-04 21:08:41 scdaemon[3398] DBG: chan_5 -> D 2.1.15
2017-01-04 21:08:41 scdaemon[3398] DBG: chan_5 -> OK
2017-01-04 21:08:41 scdaemon[3398] DBG: chan_5 <- SERIALNO openpgp
2017-01-04 21:08:46 scdaemon[3398] DBG: ccid-driver: usb_bulk_write
error: LIBUSB_ERROR_TIMEOUT
2017-01-04 21:08:46 scdaemon[3398] DBG: Removal of a card: 0
2017-01-04 21:08:46 scdaemon[3398] DBG: chan_5 -> ERR 100696144 No such
device <SCD>


On 04.01.2017 18:51, Peter Lebbing wrote:
> I think you should be able to use this card reader without pcscd, using the
> internal CCID driver of GnuPG[1]. Just stop and disable pcscd, hopefully GnuPG
> will find the reader and use it right away. That might solve your problem. I use
> GnuPG's internal CCID driver, and it is completely resilient against both
> pulling the card as well as unplugging the reader.
>
> HTH,
>
> Peter.
>
> [1] https://www.gnupg.org/howtos/card-howto/en/ch02s02.html
>





More information about the Gnupg-users mailing list