I am trying to use a Nitrokey 3A on Trisquel 12 (based on Ubuntu 24.04, everything non-free removed, including firmware).
I installed Nitrokey app 2 from flatpak, it sees the Nitrokey fine and says firmware is 1.7.2.
However, I have:
$ LC_ALL=C gpg --card-edit
gpg: selecting card failed: No such device
gpg: OpenPGP card not available: No such device
gpg/card>
I installed udev rules as recommended.
Searching on duckduckgo, I found [SOLVED] Yubikey doesn't work after reboot system (GnuPG function) / Newbie Corner / Arch Linux Forums that suggests restarting pcscd. Even though systemctl status pcscd.service
said it was already started, I restarted it, then unplugged and repluged the Nitrokey 3A and now:
$ LC_ALL=C gpg --card-edit
Reader ...........: 20A0:42B2:X:0
Application ID ...: D276000124010304000F5F83CB840000
Application type .: OpenPGP
Version ..........: 3.4
Manufacturer .....: Nitrokey
Serial number ....: 5F83CB84
Name of cardholder: Card state corrupted.
Language prefs ...: [not set]
Salutation .......:
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: forced
Key attributes ...: rsa2048 rsa2048 rsa2048
Max. PIN lengths .: 127 127 127
PIN retry counter : 3 3 3
Signature counter : 0
KDF setting ......: off
UIF setting ......: Sign=off Decrypt=off Auth=off
Signature key ....: [none]
Encryption key....: [none]
Authentication key: [none]
General key info..: [none]
gpg/card>
Even though Card state corrupted
is a little worring, at least the card seems accessible.
Perhaps it could be added to the documentation that if the OpenPGP card is not accessible, besides making sure the udev rules were updated, it could be added a suggestion to:
- restart pcscd.service
- unplug and replug the Nitrokey device