The PGP card seems to be visible:
$ LC_ALL=C gpg --card-status
Reader ...........: Nitrokey Nitrokey 3 [CCID/ICCD Interface] 00 00
Application ID ...: D276000124010304000F5F83CB840000
Application type .: OpenPGP
Version ..........: 3.4
Manufacturer .....: unknown
Serial number ....: 5F83CB84
Name of cardholder: [not set]
Language prefs ...: [not set]
Salutation .......:
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: forced
Key attributes ...: ed25519 cv25519 ed25519
Max. PIN lengths .: 127 127 127
PIN retry counter : 3 0 3
Signature counter : 0
KDF setting ......: off
Signature key ....: [none]
Encryption key....: [none]
Authentication key: [none]
General key info..: [none]
However, when I try keytocard, I get this:
$ LC_ALL=C GNUPGHOME=.gnupg gpg --edit-key --expert myaddress@mydomain
gpg (GnuPG) 2.2.27; Copyright (C) 2021 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Secret key is available.
sec ed25519/EABC9DC4CB77FDDC
created: 2024-12-09 expires: 2026-12-09 usage: SC
trust: ultimate validity: ultimate
ssb ed25519/8605FE91230C2C42
created: 2024-12-09 expires: 2025-12-09 usage: S
ssb cv25519/6B85CE1A79FCB9DC
created: 2024-12-09 expires: 2025-12-09 usage: E
[ultimate] (1). Me <myaddress@mydomain>
[ultimate] (2) Me2 <myaddress2@mydomain2>
gpg> keytocard
Really move the primary key? (y/N) y
gpg: selecting card failed: No such device
gpg: key operation not possible: No such device
I notice the following in the status of pcsd (active running):
00000000 winscard.c:286:SCardConnect() Error Reader Exclusive
99999999 winscard.c:286:SCardConnect() Error Reader Exclusive
In previous attempts, I was asked for the admin PIN and for my passphrase for the key, then I had an error. Changing the admin PIN also failed, so I did a factory reset with nitropy, then I could change the admin PIN, but now keytocard fails without even asking for it.