Hi forum,
I have a strange issue> After switching from XFCE to Gnome (Fedora 27) on my laptop I can no longer access the GPG keys on my Nitrokey Storage 32GB.
The USB part of the Nitrokey work fine, but when I want to access my GPG keys I see an error. Below is the output of the comand ‘gpg --card-status’:
gpg: detected reader Alcor Micro AU9560 00 00' gpg: detected reader
Nitrokey Nitrokey Storage (0000000000000) 01 00’
gpg: apdu_send_simple(0) failed: no card
Please insert the card and hit return or enter ‘c’ to cancel:
I’ve tried to remove and insert the Nitrokey and reboot the system, but the problem remains. Any idea what might be worng?
Update: I’ve installed pcsc_scan and ran it. The output is:
pcsc_scan
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.22
Using reader plug’n play mechanism
Scanning present readers…
0: Alcor Micro AU9560 00 00
1: Nitrokey Nitrokey Storage (0000000000000) 02 00
Fri Jan 12 16:41:01 2018
Reader 0: Alcor Micro AU9560 00 00
Card state: Card removed,
Reader 1: Nitrokey Nitrokey Storage (0000000000000) 02 00
Card state: Card inserted,
ATR: 00 40 18 D2 76 00 01 24 01 02 00 05 00 00 5E 96 00 00 90 00 8C
ATR: 00 40 18 D2 76 00 01 24 01 02 00 05 00 00 5E 96 00 00 90 00 8C
- TS = 00 → UNDEFINED
- T0 = 40, Y(1): 0100, K: 0 (historical bytes)
TC(1) = 18 → Extra guard time: 24 - Historical bytes: D2 76 00 01 24 01 02 00 05 00 00 5E 96 00 00 90 00 8C
ERROR! ATR is too long: 18 extra byte(s). Truncating.
Your card is not a microprocessor card. It seems to be memory card.
I also checked the journal, output below:
Jan 12 16:34:18 arawn systemd[1]: Started PC/SC Smart Card Daemon.
Jan 12 16:34:21 arawn pcscd[1807]: 00000000 ccid_usb.c:1256:ControlUSB() control failed (3/3): -7 LIBUSB_ERROR_TIMEOUT
Jan 12 16:34:23 arawn pcscd[1807]: 02045958 auth.c:137:IsClientAuthorized() Process 1785 (user: 42) is NOT authorized for action: access_pcsc
Jan 12 16:34:23 arawn pcscd[1807]: 00000096 winscard_svc.c:335:ContextThread() Rejected unauthorized PC/SC client
Jan 12 16:39:58 arawn pcscd[1807]: 99999999 ccid_usb.c:888:ReadUSB() read failed (3/8): -1 LIBUSB_ERROR_IO
Jan 12 16:39:58 arawn pcscd[1807]: 00000244 ifdhandler.c:1225:IFDHPowerICC() PowerUp failed
Jan 12 16:39:58 arawn pcscd[1807]: 00000019 eventhandler.c:303:EHStatusHandlerThread() Error powering up card: 2148532246 0x80100016
Jan 12 16:39:58 arawn pcscd[1807]: 00074850 ccid_usb.c:849:WriteUSB() write failed (3/8): -4 LIBUSB_ERROR_NO_DEVICE
Jan 12 16:39:58 arawn pcscd[1807]: 00000023 ifdwrapper.c:364:IFDStatusICC() Card not transacted: 617
Jan 12 16:39:58 arawn pcscd[1807]: 00000833 ifdhandler.c:151:CreateChannelByNameOrChannel() failed
Jan 12 16:39:58 arawn pcscd[1807]: 00000012 readerfactory.c:1105:RFInitializeReader() Open Port 0x200002 Failed (usb:20a0/4109:libudev:2:/dev/bus/usb/003/008)
Jan 12 16:39:58 arawn pcscd[1807]: 00000003 readerfactory.c:376:RFAddReader() Nitrokey Nitrokey Storage (0000000000000) init failed.
Jan 12 16:39:58 arawn pcscd[1807]: 00363411 winscard.c:264:SCardConnect() Reader Nitrokey Nitrokey Storage (0000000000000) 01 00 Not Found
Jan 12 16:39:59 arawn pcscd[1807]: 00636025 eventhandler.c:334:EHStatusHandlerThread() Error communicating to: Nitrokey Nitrokey Storage (0000000000000) 01 00
Jan 12 16:39:59 arawn pcscd[1807]: 00000124 ccid_usb.c:1312:InterruptRead() libusb_submit_transfer failed: LIBUSB_ERROR_NO_DEVICE
Jan 12 16:39:59 arawn pcscd[1807]: 00400181 ccid_usb.c:849:WriteUSB() write failed (3/8): -4 LIBUSB_ERROR_NO_DEVICE
Jan 12 16:40:26 arawn pcscd[1807]: 27378671 ifdhandler.c:151:CreateChannelByNameOrChannel() failed
Jan 12 16:40:26 arawn pcscd[1807]: 00000013 readerfactory.c:1105:RFInitializeReader() Open Port 0x200002 Failed (usb:20a0/4109:libudev:0:/dev/bus/usb/003/010)
Jan 12 16:40:26 arawn pcscd[1807]: 00000003 readerfactory.c:376:RFAddReader() Nitrokey Nitrokey Storage (0000000000000) init failed.
Jan 12 16:40:37 arawn pcscd[1807]: 10770046 ifdhandler.c:151:CreateChannelByNameOrChannel() failed
Jan 12 16:40:37 arawn pcscd[1807]: 00000122 readerfactory.c:1105:RFInitializeReader() Open Port 0x200003 Failed (usb:20a0/4109:libudev:2:/dev/bus/usb/003/010)
Jan 12 16:40:37 arawn pcscd[1807]: 00000026 readerfactory.c:376:RFAddReader() Nitrokey Nitrokey Storage (0000000000000) init failed.
Jan 12 16:40:57 arawn pcscd[1807]: 19695785 ccid_usb.c:849:WriteUSB() write failed (3/9): -4 LIBUSB_ERROR_NO_DEVICE
And finally, I also get the error with the Nitrokey removed from the system:
$ gpg --card-status
gpg: detected reader `Alcor Micro AU9560 00 00’
gpg: apdu_send_simple(0) failed: no card
Please insert the card and hit return or enter ‘c’ to cancel:
So, it’s not specifically related to the Nitrokey, but my system cannot access the card on the Nitrokey.
Thanks in advance,
Max