SAC Tools No smart card readers found

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
a34fm
Level 1
Level 1
Posts: 15
Joined: Mon Jan 30, 2012 7:55 am
Location: Athens, Greece

SAC Tools No smart card readers found

Post by a34fm »

I've installed the "safenetauthenticationclient_10.7.77_amd64.deb" version and use the 5110 token.
Unfortunately, even though every dependency is ok, the token is not recognized.
The "lsusb" output is finding the device:

Code: Select all

Bus 001 Device 008: ID 0529:3002 Aladdin Knowledge Systems
But the "opensc-tool -l" gives this one:

Code: Select all

No smart card readers found.
I'm using the Linux Mint 20.3 Una
In the previous version of Mint (19.1), everything was fine with "SafenetAuthenticationClient-10.0.37-0_amd64.deb".
Running the "/usr/bin/SACTools" from the Terminal, I get:

Code: Select all

(SACTools:5225): Gtk-CRITICAL **: 18:39:06.313: IA__gtk_cell_layout_clear_attributes: assertion 'GTK_IS_CELL_RENDERER (cell)' failed
(SACTools:5225): Gtk-CRITICAL **: 18:39:06.313: IA__gtk_cell_layout_clear_attributes: assertion 'GTK_IS_CELL_RENDERER (cell)' failed
(SACTools:5225): GLib-GObject-CRITICAL **: 18:39:06.313: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Of course in Windows everything works fine. (I hate this phrase but is the bitter truth). :mrgreen:
Any thoughts or propositions accepted.
Thanks in advance for your time.

(LongTerm user of Mint but moderate knowledge in programming.)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
djph
Level 7
Level 7
Posts: 1951
Joined: Thu Jun 27, 2019 5:43 am
Location: ::1

Re: SAC Tools No smart card readers found

Post by djph »

what's dmesg say when you plug the card in (sudo dmesg)

Also, did you perhaps need a udev rule in 19 that you've forgotten to add in 20?
User avatar
a34fm
Level 1
Level 1
Posts: 15
Joined: Mon Jan 30, 2012 7:55 am
Location: Athens, Greece

Re: SAC Tools No smart card readers found

Post by a34fm »

Here is the dmseg output, I hope that's enough to understand what you want to:

Code: Select all

 3609.483347] usb 1-1.2.3: Product: HID JC
[ 3609.483349] usb 1-1.2.3: Manufacturer: SafeNet
[ 3609.483351] usb 1-1.2.3: SerialNumber: 0000026929CE
[ 3609.485345] hid-generic 0003:0529:3002.000D: hiddev1,hidraw3: USB HID v1.01 Device [SafeNet HID JC] on usb-0000:00:1a.0-1.2.3/input0
[ 3627.159884] usb 1-1.2.3: reset full-speed USB device number 15 using ehci-pci
[ 3627.379874] usb 1-1.2.3: reset full-speed USB device number 15 using ehci-pci
[ 3933.981786] powercap intel-rapl:0: package locked by BIOS, monitoring only
[ 4109.473725] perf: interrupt took too long (3135 > 3130), lowering kernel.perf_event_max_sample_rate to 63750
[ 4179.675801] usb 1-1.2.3: reset full-speed USB device number 15 using ehci-pci
[ 4189.107796] usb 1-1.2.3: reset full-speed USB device number 15 using ehci-pci
[ 4189.335796] usb 1-1.2.3: reset full-speed USB device number 15 using ehci-pci
[ 4520.736787] usb 1-1.2.3: USB disconnect, device number 15
[ 4592.899779] usb 1-1.2.3: new full-speed USB device number 16 using ehci-pci
[ 4593.018975] usb 1-1.2.3: New USB device found, idVendor=0529, idProduct=3002, bcdDevice= 0.13
[ 4593.018981] usb 1-1.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4593.018985] usb 1-1.2.3: Product: HID JC
[ 4593.018988] usb 1-1.2.3: Manufacturer: SafeNet
[ 4593.018991] usb 1-1.2.3: SerialNumber: 0000026929CE
[ 4593.021322] hid-generic 0003:0529:3002.000E: hiddev1,hidraw3: USB HID v1.01 Device [SafeNet HID JC] on usb-0000:00:1a.0-1.2.3/input0
[ 5781.274737] usb 1-1.2.3: USB disconnect, device number 16
[ 5784.827711] usb 1-1.1: new full-speed USB device number 17 using ehci-pci
[ 5784.942786] usb 1-1.1: New USB device found, idVendor=0529, idProduct=3002, bcdDevice= 0.13
[ 5784.942792] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5784.942795] usb 1-1.1: Product: HID JC
[ 5784.942799] usb 1-1.1: Manufacturer: SafeNet
[ 5784.942801] usb 1-1.1: SerialNumber: 0000026929CE
[ 5784.944863] hid-generic 0003:0529:3002.000F: hiddev1,hidraw3: USB HID v1.01 Device [SafeNet HID JC] on usb-0000:00:1a.0-1.1/input0
[ 5789.311743] perf: interrupt took too long (3962 > 3918), lowering kernel.perf_event_max_sample_rate to 50250
I really don't remember anything about a setting in udev.
User avatar
a34fm
Level 1
Level 1
Posts: 15
Joined: Mon Jan 30, 2012 7:55 am
Location: Athens, Greece

Re: SAC Tools No smart card readers found

Post by a34fm »

And here is the udevadm monitor output when unplugging and plugging back the etoken:

Code: Select all

fmsakis@fmsakis-Lenovo-Z580:~$ udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[6655.508006] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/usbmisc/hiddev1 (usbmisc)
KERNEL[6655.508098] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:0529:3002.000F/hidraw/hidraw3 (hidraw)
KERNEL[6655.508128] unbind   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:0529:3002.000F (hid)
KERNEL[6655.508159] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:0529:3002.000F (hid)
KERNEL[6655.508182] unbind   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0 (usb)
KERNEL[6655.508206] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0 (usb)
KERNEL[6655.508308] unbind   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1 (usb)
KERNEL[6655.508341] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1 (usb)
UDEV  [6655.510844] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/usbmisc/hiddev1 (usbmisc)
UDEV  [6655.511106] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:0529:3002.000F/hidraw/hidraw3 (hidraw)
UDEV  [6655.512631] unbind   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:0529:3002.000F (hid)
UDEV  [6655.513689] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:0529:3002.000F (hid)
UDEV  [6655.516302] unbind   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0 (usb)
UDEV  [6655.518070] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0 (usb)
UDEV  [6655.520885] unbind   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1 (usb)
UDEV  [6655.527866] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1 (usb)
KERNEL[6706.787986] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3 (usb)
KERNEL[6706.788640] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0 (usb)
KERNEL[6706.789515] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/0003:0529:3002.0010 (hid)
KERNEL[6706.789707] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/usbmisc/hiddev1 (usbmisc)
KERNEL[6706.789827] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/0003:0529:3002.0010/hidraw/hidraw3 (hidraw)
KERNEL[6706.789959] bind     /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/0003:0529:3002.0010 (hid)
KERNEL[6706.790098] bind     /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0 (usb)
KERNEL[6706.790140] bind     /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3 (usb)
UDEV  [6706.817481] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3 (usb)
UDEV  [6706.827595] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0 (usb)
UDEV  [6706.830898] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/0003:0529:3002.0010 (hid)
UDEV  [6706.837822] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/0003:0529:3002.0010/hidraw/hidraw3 (hidraw)
UDEV  [6706.840354] bind     /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/0003:0529:3002.0010 (hid)
UDEV  [6706.843920] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/usbmisc/hiddev1 (usbmisc)
UDEV  [6706.850716] bind     /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0 (usb)
UDEV  [6706.862498] bind     /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3 (usb)
Hope this info is good enough for you to conclude something helpful.
djph
Level 7
Level 7
Posts: 1951
Joined: Thu Jun 27, 2019 5:43 am
Location: ::1

Re: SAC Tools No smart card readers found

Post by djph »

huh, seems the USB port (or the device itself) is just cycling.

Have you tested it in a different port and/or on a different machine?
User avatar
a34fm
Level 1
Level 1
Posts: 15
Joined: Mon Jan 30, 2012 7:55 am
Location: Athens, Greece

Re: SAC Tools No smart card readers found

Post by a34fm »

Yes, I have ... with the same output.
Have in mind that at this slot (or any other) it's working just fine in the windows virtual-box machine (linux mint as host and Xp or win-7 as guests).
When I boot in windows 10 from an independent disk everything is fine also.
Isn't it driving you crazy??? :twisted:

Code: Select all

pkcs-tool --module /usr/lib64/libeTPkcs11.so -L
gives all slots as empty

Code: Select all

pkcs11-tool -T
gives no slots.
Despite all these etoken is working fine but only in windows.
User avatar
a34fm
Level 1
Level 1
Posts: 15
Joined: Mon Jan 30, 2012 7:55 am
Location: Athens, Greece

Re: SAC Tools No smart card readers found

Post by a34fm »

Here is and a more detailed output, if it helps:

Code: Select all

~$ sudo lsusb -vd 0529:3002       

Bus 001 Device 015: ID 0529:3002 Aladdin Knowledge Systems 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0529 Aladdin Knowledge Systems
  idProduct          0x3002 
  bcdDevice            0.13
  iManufacturer           1 SafeNet
  iProduct                2 HID JC
  iSerial                 3 0000026929CE
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0022
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower               50mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              5 eToken 5110 HID
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.01
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      26
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)
User avatar
a34fm
Level 1
Level 1
Posts: 15
Joined: Mon Jan 30, 2012 7:55 am
Location: Athens, Greece

Re: SAC Tools No smart card readers found

Post by a34fm »

...and if it's interesting, the same eToken tested on a Virtual guest Mac OS Catalina machine, in the same USB port,
is fine recognized and fully working. :mrgreen: :?: :!: :twisted:
User avatar
a34fm
Level 1
Level 1
Posts: 15
Joined: Mon Jan 30, 2012 7:55 am
Location: Athens, Greece

Re: SAC Tools No smart card readers found

Post by a34fm »

I experienced this as well. If I downgrade libusbx from 1.0.25-2 to 1.0.24-4, I can see my Yubikey. I tested this on a laptop and a desktop machine, both show the same behaviour. I also tried this on RHEL 9.0 Beta, and the same problem appears there. I submitted a bug regarding this.
Found this solution in:
https://forums.centos.org/viewtopic.php?f=54&t=78860

After that looked for LinuxMint 20.3 Synaptic packages manager and saw that the installed library was libusb-1.0-0
then I also installed the previous version libusb-0.1-4
and the miracle happened
everything worked instantly
User avatar
a34fm
Level 1
Level 1
Posts: 15
Joined: Mon Jan 30, 2012 7:55 am
Location: Athens, Greece

Re: SAC Tools No smart card readers found

Post by a34fm »

The exactly same solution applies on OpenSuse Leap 15.3.
User avatar
a34fm
Level 1
Level 1
Posts: 15
Joined: Mon Jan 30, 2012 7:55 am
Location: Athens, Greece

Re: SAC Tools No smart card readers found

Post by a34fm »

Unfortunately this trick worked just once and now the known issue persists without
the possibility of functioning even after install, uninstall of the library.
The etoken continues to function in Windows and Mac, in the same machine (virtual or physical).
:evil: It hates every Linux distro or better :) if there won't be an updated library it will never function.
The treasure proved to be carbon! :lol:
:!: :?: >>Sorry, to say that!<< :?: :!:
FelixCat72
Level 1
Level 1
Posts: 1
Joined: Thu May 19, 2022 8:29 pm

Re: SAC Tools No smart card readers found

Post by FelixCat72 »

I followed the instructions present in the article written by agnelpovoa in https://diadialinux.wordpress.com/2021/ ... ntu-20-04/ with only one difference. In pass 4 I replaced the library 'libcrypto.so.1.0.2' for the last version 'libcrypto.so.1.1'. It worked perfectly. Thanks to agnelpovoa.
User avatar
a34fm
Level 1
Level 1
Posts: 15
Joined: Mon Jan 30, 2012 7:55 am
Location: Athens, Greece

Re: SAC Tools No smart card readers found

Post by a34fm »

:D :) :( :|
Last edited by a34fm on Wed May 25, 2022 8:56 am, edited 1 time in total.
User avatar
a34fm
Level 1
Level 1
Posts: 15
Joined: Mon Jan 30, 2012 7:55 am
Location: Athens, Greece

Re: SAC Tools No smart card readers found

Post by a34fm »

FelixCat72 wrote: Thu May 19, 2022 8:48 pm I followed the instructions present in the article written by agnelpovoa in https://diadialinux.wordpress.com/2021/ ... ntu-20-04/ with only one difference. In pass 4 I replaced the library 'libcrypto.so.1.0.2' for the last version 'libcrypto.so.1.1'. It worked perfectly. Thanks to agnelpovoa.

I don't want you to feel sad but I've done all these steps at start before any other try because Brazilians are far forth from other countries in Linux use in Government sectors. But... it simply doesn't work for me. The solution of CentOs showed a spark of willingness but... you know the rest. Thanks anyway. As it looks it depends on a mysterious set of libraries involving in recognition so that it's very complicated to have the one and only solution! :(
Locked

Return to “Software & Applications”