I am using keepassxc-cli to extract passwords from my database which is locked with a password and my nitro-key. keepassxc-cli reqires the slot and the serial number for this to work. The GUI keepassxc extracts a serial number from the plugged in nitrokey, and can open the database. However, I fail to extract this exact same serial number using the commandline. nitropy seems not to be able to show the serial number. lsusb reports 0 for the iSerial and gpg –card-status reports a serial number that is different from the one that keepassxc(GUI) shows. The one gpg serial number seems to be part of the UUID but there is an other serial number hidden somewhere that keepassxc needs.
Any ideas?