Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Cannot get USB smartcard (Nitrokey) working in LEAP15

  1. #1

    Question Cannot get USB smartcard (Nitrokey) working in LEAP15

    No matter what I do, I can't get a Nitrokey working in LEAP15 !

    The system sees it:
    Code:
    [13063.123310] usb 1-13: Product: Nitrokey HSM
    [13063.123313] usb 1-13: Manufacturer: Nitrokey
    But I can't !
    Code:
    $ opensc-tool --list-readers
    -bash: opensc-tool: command not found
    The steps I have taken (the Nitro HSM requires OpenSC 0.19):

    Code:
    zypper ar http://download.opensuse.org/repositories/security:/chipcard/openSUSE_Leap_15.0/security:chipcard.repo
    zypper lr -P
    zypper mr -p 10 <repo_number>
    zypper ref
    zypper in opensc
    zypper in pcsc-ccid pcsc-lite opensc
    systemctl start pcscd
    The issue persists even if I do a USBDEVFS_RESET

  2. #2
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    26,565
    Blog Entries
    38

    Default Re: Cannot get USB smartcard (Nitrokey) working in LEAP15

    I am not knowledgeable in figuring out the mounting of USB cards that may not be recognized. So I hope someone else chimes in on that specific.

    But there are a couple things in your post that has me curious that may be relevant to your problem.

    1st, you reported:
    Code:
    $ opensc-tool --list-readers
    -bash: opensc-tool: command not found
    Typically that will only happen if you do not have opensc-tool installed or if opensc-tool is not included in the version of opensc in which you have installed. Do you have opensc installed? It is not installed by default in LEAP-15.0.

    2nd, further what version of opensc do you have installed?

    I note openSUSE-LEAP-15.0 has opensc-0.18.0-lp150.2.9.1.x86_64 and not opensc 0.19 where you note you have installed an updated opensc from the repository
    Code:
    http://download.opensuse.org/repositories/security:/chipcard/openSUSE_Leap_15.0/
    That repository has "opensc-0.19.0-lp150.67.1.x86_64.rpm" and when I look inside of it, the executeable "opensc-tool" is included.

    Yet you get the output "opensc-tool: command not found". That does not make sense to me.

    That suggest to me either there is a permission issue with that command (which there should not be as it should run as a regular user) or there was a bad install of "opensc-0.19.0-lp150.67.1.x86_64.rpm".

    Possibly you could check that to ensure ok? Out of curiousity, what does this command yield?
    Code:
    rpm -q opensc
    and further what does this command yield:
    Code:
    rpm -ql opensc | grep opensc-tool
    Does it prove opensc-tool is installed? If installed, and you obtain that error, perhaps a re-install of that app should be forced < speculation on my part >

    If installed and all ok there, then I hope someone else in our forum chimes in.
    Last edited by oldcpu; 11-Apr-2019 at 07:55.

  3. #3

    Default Re: Cannot get USB smartcard (Nitrokey) working in LEAP15

    @oldcpu

    No. I don't know where that came from ! What I should have posted was:

    Code:
    $opensc-tool --list-readers
    No smart card readers found.
    $pkcs15-tool -D
    No smart card readers found.

  4. #4
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    3,979

    Default AW: Cannot get USB smartcard (Nitrokey) working in LEAP15

    Post:
    Code:
    lsusb

  5. #5

    Default Re: AW: Cannot get USB smartcard (Nitrokey) working in LEAP15

    Quote Originally Posted by Sauerland View Post
    Post:
    Code:
    lsusb
    Code:
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 004: ID 1604:10c0 Tascam 
    Bus 001 Device 003: ID 1604:10c0 Tascam 
    Bus 001 Device 002: ID 1604:10c0 Tascam 
    Bus 001 Device 010: ID 20a0:4230 Clay Logic 
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

  6. #6
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    3,979

    Default AW: Cannot get USB smartcard (Nitrokey) working in LEAP15


  7. #7

    Default Re: AW: Cannot get USB smartcard (Nitrokey) working in LEAP15

    Code:
     sudo zypper se -si pcsc
    Loading repository data...
    Reading installed packages...
    
    S  | Name         | Type    | Version            | Arch   | Repository                                        
    ---+--------------+---------+--------------------+--------+---------------------------------------------------
    i  | libpcsclite1 | package | 1.8.25-lp150.161.1 | x86_64 | Software to support chipcards (openSUSE_Leap_15.0)
    i+ | pcsc-ccid    | package | 1.4.30-lp150.87.1  | x86_64 | Software to support chipcards (openSUSE_Leap_15.0)
    i  | pcsc-lite    | package | 1.8.25-lp150.161.1 | x86_64 | Software to support chipcards (openSUSE_Leap_15.0)

  8. #8
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    3,979

    Default AW: Cannot get USB smartcard (Nitrokey) working in LEAP15

    As written in the nitrokey forum, it should work:
    Code:
    opensc-tool --list-readers
    # Detected readers (pcsc)
    Nr.  Card  Features  Name
    0    No    PIN pad   REINER SCT cyberJack RFID standard (5801785180) 00 00

  9. #9

    Default Re: AW: Cannot get USB smartcard (Nitrokey) working in LEAP15

    Quote Originally Posted by Sauerland View Post
    As written in the nitrokey forum, it should work:
    Code:
    opensc-tool --list-readers
    # Detected readers (pcsc)
    Nr.  Card  Features  Name
    0    No    PIN pad   REINER SCT cyberJack RFID standard (5801785180) 00 00


    Well, yes it "should" work. But as per my post #3 it does not work.

  10. #10
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    3,979

    Default AW: Cannot get USB smartcard (Nitrokey) working in LEAP15

    Opern a terminal, as root:
    Code:
    journalctl -f
    Now put your cardreader to an USB-Port and post all new line from the terminal here.

    Otherwise ask the manufacturer.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •