Forum

Bitte beachte auch unsere Knowledgebase und das Handbuch!

Benachrichtigungen
Alles löschen

[Gelöst] Ubuntu und Gemalto USB-Stick

13 Beiträge
2 Benutzer
0 Reactions
12.1 K Ansichten
(@melchior)
Beiträge: 10
Active Member
Themenstarter
 

Hallo!

Ich habe heute den Nachmittag damit verbracht die Signatureinheit und die Kasse gemeinsam zu testen.

Ich kann den Kartenleser zwar bei den Einstellungen auswählen, beim Test allerdings wird kein Signaturmodul gefunden.

Beiliegend die logs.

Ubuntu hab ich in einer VM laufen, beiliegend das Debug-Log.

Unter Windows 10 hat es beim ersten Versuch funktioniert.

 

 

 

 
Veröffentlicht : 11. Februar 2017 20:31
chris
(@chris)
Beiträge: 1267
Noble Member Admin
 

hi

Kannst mir bitte auch das qrk log zukommen lassen?

Was sagt ein pcsc_scan?

Welche Version ?

 
Veröffentlicht : 11. Februar 2017 20:49
(@melchior)
Beiträge: 10
Active Member
Themenstarter
 

ubuntu 16.04 LTS

QRK V1.02.Build-170117

PC/SC device scanner
V 1.4.25 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>
Compiled with PC/SC lite version: 1.8.14
Using reader plug'n play mechanism
Scanning present readers...
0: Gemalto USB Shell Token V2 (60348EF6) 00 00

Sat Feb 11 17:34:53 2017
Reader 0: Gemalto USB Shell Token V2 (60348EF6) 00 00
  Card state: Card inserted,
  ATR: 3B DF 18 00 81 31 FE 58 80 31 90 52 41 01 64 05 C9 03 AC 73 B7 B1 D4 44

ATR: 3B DF 18 00 81 31 FE 58 80 31 90 52 41 01 64 05 C9 03 AC 73 B7 B1 D4 44
+ TS = 3B --> Direct Convention
+ T0 = DF, Y(1): 1101, K: 15 (historical bytes)
  TA(1) = 18 --> Fi=372, Di=12, 31 cycles/ETU
    129032 bits/s at 4 MHz, fMax for Fi = 5 MHz => 161290 bits/s
  TC(1) = 00 --> Extra guard time: 0
  TD(1) = 81 --> Y(i+1) = 1000, Protocol T = 1
-----
  TD(2) = 31 --> Y(i+1) = 0011, Protocol T = 1
-----
  TA(3) = FE --> IFSC: 254
  TB(3) = 58 --> Block Waiting Integer: 5 - Character Waiting Integer: 8
+ Historical bytes: 80 31 90 52 41 01 64 05 C9 03 AC 73 B7 B1 D4
  Category indicator byte: 80 (compact TLV data object)
    Tag: 3, len: 1 (card service data byte)
      Card service data byte: 90
        - Application selection: by full DF name
        - BER-TLV data objects available in EF.ATR
        - EF.DIR and EF.ATR access services: by GET RECORD(s) command
        - Card with MF
    Tag: 5, len: 2 (card issuer's data)
      Card issuer data: 41 01
    Tag: 6, len: 4 (pre-issuing data)
      Data: 05 C9 03 AC
    Tag: 7, len: 3 (card capabilities)
      Selection methods: B7
        - DF selection by full DF name
        - DF selection by path
        - DF selection by file identifier
        - Short EF identifier supported
        - Record number supported
        - Record identifier supported
      Data coding byte: B1
        - EF of TLV structure supported
        - Behaviour of write functions: proprietary
        - Value 'FF' for the first byte of BER-TLV tag fields: valid
        - Data unit in quartets: 2
      Command chaining, length fields and logical channels: D4
        - Command chaining
        - Extended Lc and Le fields
        - Logical channel number assignment: by the card
        - Maximum number of logical channels: 5
+ TCK = 44 (correct checksum)

Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
3B DF 18 00 81 31 FE 58 80 31 90 52 41 01 64 05 C9 03 AC 73 B7 B1 D4 44
 a.sign RK CHIP with certificate
  https://www.a-trust.at/webshop/Detail.aspx?ProdId=2021

 
Veröffentlicht : 11. Februar 2017 23:54
chris
(@chris)
Beiträge: 1267
Noble Member Admin
 

Es schaut so aus als würde eine andere App die Karte blockieren. 

 
Veröffentlicht : 12. Februar 2017 0:05
(@melchior)
Beiträge: 10
Active Member
Themenstarter
 

Ubuntu ist ganz "frisch" installiert.

Also entweder über die VM blockiert, oder Berechtigungen?

 

 
Veröffentlicht : 12. Februar 2017 0:15
chris
(@chris)
Beiträge: 1267
Noble Member Admin
 

Ich hab da keine recht oder was ändern müssen.  Einfach pcsclite installiert und pcscd gestartet 

Verwendung Ubuntu 1604 und 1610 beides kein Problem.  Halt nicht virtuell.

 
Veröffentlicht : 12. Februar 2017 0:45
(@melchior)
Beiträge: 10
Active Member
Themenstarter
 

Habs ohne die Konfiguration zu verändern auf Hinweis eines Freundes mit einem "alten" gemalto - Kartenlesegerät probiert.
Genaue Bezeichnung lt. Ubuntu: "Gemalto PC Twin Reader". Der hat mit der gleichen Karte auf Anhieb funktioniert.
Unter Windows funktioniert dieser auch, wird als "Gemplus USB Smart Card Reader" erkannt.

Zum USB-Stick:
Unter Windows wird dieser in QRK als "Gemalto USB Key Smart Card Reader" angezeigt und funktioniert dort.
Unter Ubuntu wird er als "Gemalto USB Shell Token V2" angezeigt funktionierte jedoch nicht.
Meldung, wenn man auf "Test" klickt: "Kein Signatur Module gefunden."

 
Veröffentlicht : 27. Februar 2017 0:13
chris
(@chris)
Beiträge: 1267
Noble Member Admin
 

Hallo

Glaub nicht das es am Reader liegt.

Mein USB Stick meldet sich mit "Gemalto PC Twin Reader".

Im Log kann jedoch einerseits der Manager nicht gefunden werden (Error: "The Smart card resource manager is not running.")

und die Karte reagiert nicht auf ein Reset (Error: "The smart card is not responding to a reset.")

Die Karte wird als SCARD_SHARE_EXCLUSIVE geöffnet. Das schlägt fehl. Läuft im Hintergrund evtl. pcsc_scan? Ich könnte versuchen die Karte mit SCARD_SHARE_SHARED zu öffnen. Ich habe aber keine Erfahrungswerte was dann passieren könnte wenn ein anderer Client auch darauf zugreifen möchte. Ich werde das mal in der nächsten Version als Option einbauen.

 
Veröffentlicht : 27. Februar 2017 17:31
(@melchior)
Beiträge: 10
Active Member
Themenstarter
 

Nein, es läuft nichts im Hintergrund... sonst hätte der Kartenleser wahrscheinlich auch gezickt.

Können wir vielleicht die Gerätenummern vergleichen? Hat deiner auch die USB-ID "ID 08e6:3438"?

root@ubuntu:/# lsusb -v
Bus 002 Device 006: ID 08e6:3438 Gemalto (was Gemplus) GemPC Key SmartCard Reader
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x08e6 Gemalto (was Gemplus)
  idProduct          0x3438 GemPC Key SmartCard Reader
  bcdDevice            2.00
  iManufacturer           1 Gemalto
  iProduct                2 USB SmartCard Reader
  iSerial                 3 60348EF6
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           93
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower               50mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass        11 Chip/SmartCard
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      ChipCard Interface Descriptor:
        bLength                54
        bDescriptorType        33
        bcdCCID              1.01  (Warning: Only accurate for version 1.0)
        nMaxSlotIndex           0
        bVoltageSupport         7  5.0V 3.0V 1.8V
        dwProtocols             3  T=0 T=1
        dwDefaultClock       4800
        dwMaxiumumClock      4800
        bNumClockSupported      0
        dwDataRate          12903 bps
        dwMaxDataRate      825806 bps
        bNumDataRatesSupp.     53
        dwMaxIFSD             254
        dwSyncProtocols  00000000
        dwMechanical     00000000
        dwFeatures       00010230
          Auto clock change
          Auto baud rate change
          NAD value other than 0x00 accepted
          TPDU level exchange
        dwMaxCCIDMsgLen       271
        bClassGetResponse      00
        bClassEnvelope         00
        wlcdLayout           none
        bPINSupport             0
        bMaxCCIDBusySlots       1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              16
Device Status:     0x0000
  (Bus Powered)
 
Veröffentlicht : 27. Februar 2017 22:14
chris
(@chris)
Beiträge: 1267
Noble Member Admin
 

Hi

 

Nicht ganz

Bus 001 Device 012: ID 08e6:3437 Gemalto (was Gemplus) GemPC Twin SmartCard Reader
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x08e6 Gemalto (was Gemplus)
idProduct 0x3437 GemPC Twin SmartCard Reader
bcdDevice 2.01
iManufacturer 1 Gemalto
iProduct 2 USB SmartCard Reader
iSerial 3 BCDFF0D4
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 93
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 50mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 11 Chip/SmartCard
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
ChipCard Interface Descriptor:
bLength 54
bDescriptorType 33
bcdCCID 1.01 (Warning: Only accurate for version 1.0)
nMaxSlotIndex 0
bVoltageSupport 7 5.0V 3.0V 1.8V
dwProtocols 3 T=0 T=1
dwDefaultClock 4800
dwMaxiumumClock 4800
bNumClockSupported 0
dwDataRate 12903 bps
dwMaxDataRate 825806 bps
bNumDataRatesSupp. 53
dwMaxIFSD 254
dwSyncProtocols 00000000
dwMechanical 00000000
dwFeatures 00010230
Auto clock change
Auto baud rate change
NAD value other than 0x00 accepted
TPDU level exchange
dwMaxCCIDMsgLen 271
bClassGetResponse 00
bClassEnvelope 00
wlcdLayout none
bPINSupport 0
bMaxCCIDBusySlots 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 16
Device Status: 0x0000
(Bus Powered)
 
Veröffentlicht : 28. Februar 2017 13:50
chris
(@chris)
Beiträge: 1267
Noble Member Admin
 

Sorry war der Falsche

Hier der Stick (ist der gleiche)

Bus 001 Device 013: ID 08e6:3438 Gemalto (was Gemplus) GemPC Key SmartCard Reader
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x08e6 Gemalto (was Gemplus)
idProduct 0x3438 GemPC Key SmartCard Reader
bcdDevice 2.00
iManufacturer 1
iProduct 2
iSerial 3
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 93
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 50mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 11 Chip/SmartCard
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
ChipCard Interface Descriptor:
bLength 54
bDescriptorType 33
bcdCCID 1.01 (Warning: Only accurate for version 1.0)
nMaxSlotIndex 0
bVoltageSupport 7 5.0V 3.0V 1.8V
dwProtocols 3 T=0 T=1
dwDefaultClock 4800
dwMaxiumumClock 4800
bNumClockSupported 0
dwDataRate 12903 bps
dwMaxDataRate 825806 bps
bNumDataRatesSupp. 50
dwMaxIFSD 254
dwSyncProtocols 00000000
dwMechanical 00000000
dwFeatures 00010230
Auto clock change
Auto baud rate change
NAD value other than 0x00 accepted
TPDU level exchange
dwMaxCCIDMsgLen 271
bClassGetResponse 00
bClassEnvelope 00
wlcdLayout none
bPINSupport 0
bMaxCCIDBusySlots 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 16
 
Veröffentlicht : 28. Februar 2017 13:55
(@melchior)
Beiträge: 10
Active Member
Themenstarter
 

Hab jetzt einen PC neu aufgesetzt (Xubuntu) und den USB-Stick mit QRK getestet.

Also ohne Virtualisierung klappt der USB Stick ohne Probleme.

Das Probleme dürfte als bei der Virtualisierung mit USB-Stick liegen.

Für mich ist das Thema erledigt. Es funktioniert.

Vielen Dank für deine Unterstützung!

 
Veröffentlicht : 5. März 2017 11:20
chris
(@chris)
Beiträge: 1267
Noble Member Admin
 

Sehr gut.  passt

 

 
Veröffentlicht : 5. März 2017 21:38
Teilen: