El día martes, marzo 13, 2018 a las 04:00:04p. m. +0100, Peter Lebbing escribió:

> On 13/03/18 15:34, Matthias Apitz wrote:
> > Is there some config missing so that scdaemon opens directly the reader?
> > What does 'pcsc_establish_context failed' mean?
> 
> A notable difference between the built-in CCID driver and pcscd is probably 
> the
> user credentials that open the USB device. Make sure you have write access to
> the character device in /dev/bus/usb that corresponds to your smartcard:

Please note, this is not Linux but FreeBSD. But you pointed in the
correct direction: missing rw perms in /dev/usb/* device files; I'm in
the group operator, but they have had only 0600 perms; I fixed this to:

# ls -l /dev/usb
total 0
crw-rw----  1 root  operator  0x2c 13 mar.  15:17 0.1.0
crw-rw----  1 root  operator  0x3d 13 mar.  15:17 0.1.1
crw-rw----  1 root  operator  0x40 13 mar.  15:17 0.2.0
crw-rw----  1 root  operator  0x42 13 mar.  15:17 0.2.1
crw-rw----  1 root  operator  0x43 13 mar.  15:17 0.2.7
crw-rw----  1 root  operator  0x44 13 mar.  15:17 0.3.0
crw-rw----  1 root  operator  0x46 13 mar.  15:17 0.3.1
crw-rw----  1 root  operator  0x47 13 mar.  15:17 0.3.2
crw-rw----  1 root  operator  0x48 13 mar.  15:17 0.3.3
crw-rw----  1 root  operator  0x7e 13 mar.  15:26 0.4.0
crw-rw----  1 root  operator  0x80 13 mar.  15:26 0.4.1
crw-rw----  1 root  operator  0x81 13 mar.  15:26 0.4.2
crw-rw----  1 root  operator  0x82 13 mar.  15:26 0.4.3

and this gives more log; see below;

> Also, if I were you, I'd clean the smartcard contacts with isopropyl alcohol.
> I'm not sure what other cleaning agents would work well, I just use that one.
> 
> It could be that your card has just died. Smartcards are not the most robust
> devices, and they are subjected to stress usually.

Thanks for this hint too.


2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: chan_7 <- GETINFO version
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: chan_7 -> D 2.1.19
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: chan_7 -> OK
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: chan_7 <- SERIALNO openpgp
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: apdu_open_reader: BAI=400
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: apdu_open_reader: new 
device=400
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver: using CCID 
reader 0 (ID=04E6:5816:55511514602745:0)
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver: idVendor: 04E6  
idProduct: 5816  bcdDevice: 0202
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver: ChipCard 
Interface Descriptor:
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bLength        
        54
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   
bDescriptorType        33
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bcdCCID        
      1.10  (Warning: Only accurate for version 1.0)
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   nMaxSlotIndex  
         0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   
bVoltageSupport         7  ?
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   dwProtocols    
         3  T=0 T=1
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   dwDefaultClock 
      4800
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   
dwMaxiumumClock     16000
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   
bNumClockSupported      0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   dwDataRate     
     12903 bps
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   dwMaxDataRate  
    600000 bps
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   
bNumDataRatesSupp.      0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   dwMaxIFSD      
       252
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   
dwSyncProtocols  00000000 
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   dwMechanical   
  00000000 
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   dwFeatures     
  000100BA
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:     Auto 
configuration based on ATR (assumes auto voltage)
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:     Auto voltage 
selection
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:     Auto clock 
change
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:     Auto baud 
rate change
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:     Auto PPS 
made by CCID
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:     TPDU level 
exchange
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   
dwMaxCCIDMsgLen       271
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   
bClassGetResponse    echo
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bClassEnvelope 
      echo
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   wlcdLayout     
      none
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bPINSupport    
         0 
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   
bMaxCCIDBusySlots       1
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver: CCID submit 
transfer (83): 0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver: 
PC_to_RDR_IccPowerOn:
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   dwLength 
..........: 0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bSlot 
.............: 0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bSeq 
..............: 1
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bPowerSelect 
......: 0x00 (auto)
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   [0008]  00 00
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver: CCID: interrupt 
callback 0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver: CCID submit 
transfer again 0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver: 
RDR_to_PC_DataBlock:
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   dwLength 
..........: 0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bSlot 
.............: 0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bSeq 
..............: 1
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bStatus 
...........: 65
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bError 
............: 254
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver: CCID command 
failed: CCID timed out while talking to the ICC
2018-03-13 16:23:16 scdaemon[2508.802017900] reader slot 0: using ccid driver
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: enter: apdu_connect: slot=0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: enter: apdu_reset: slot=0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver: 
PC_to_RDR_IccPowerOn:
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   dwLength 
..........: 0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bSlot 
.............: 0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bSeq 
..............: 4
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bPowerSelect 
......: 0x00 (auto)
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   [0008]  00 00
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver: 
RDR_to_PC_DataBlock:
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   dwLength 
..........: 0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bSlot 
.............: 0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bSeq 
..............: 4
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bStatus 
...........: 65
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bError 
............: 254
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver: CCID command 
failed: CCID timed out while talking to the ICC
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: leave: apdu_reset => 
sw=0x10009
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: leave: apdu_connect => 
sw=0x10009
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: enter: apdu_close_reader: 
slot=0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: enter: apdu_disconnect: slot=0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: leave: apdu_disconnect => 
sw=0x0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver: 
PC_to_RDR_IccPowerOff:
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   dwLength 
..........: 0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bSlot 
.............: 0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bSeq 
..............: 5
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   [0007]  00 00 
00
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver: 
RDR_to_PC_SlotStatus:
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   dwLength 
..........: 0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bSlot 
.............: 0
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bSeq 
..............: 5
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bStatus 
...........: 1
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver:   bClockStatus 
......: 0x01 (stopped-L)
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver: 
libusb_cancel_transfer
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: ccid-driver: 
libusb_handle_events_completed
2018-03-13 16:23:16 scdaemon[2508.802280500] DBG: ccid-driver: CCID: interrupt 
callback 3
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: leave: apdu_close_reader => 
0x0 (close_reader)
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: enter: apdu_open_reader: 
portstr=(null)
2018-03-13 16:23:16 scdaemon[2508.802017900] pcsc_establish_context failed: no 
service (0x8010001d)
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: leave: apdu_open_reader => 
slot=-1 [pc/sc]
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: chan_7 -> ERR 100696144 
Operation not supported by device <SCD>
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: chan_7 <- RESTART
2018-03-13 16:23:16 scdaemon[2508.802017900] DBG: chan_7 -> OK



-- 
Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/  📱 
+49-176-38902045

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to