Kleopatra flow for creating new PGP keys on smartcards ends with error but only appears to fail
Hi! Note sure if this is an issue with Tails, Kleopatra or Debian's version of Kleopatra but, when I try to generate a new PGP key in Kleopatra's Smartcard Management section, I get either an "Invalid Name" error or a general error and seems to fail, until I plug in the smartcard (a Yubikey 4 in this case) to another machine running Kleopatra, which detects that PGP keys were in fact created, in spite of the error messages.
Steps to reproduce
- On Tails 5.11, select Applications > Accessories > Kleopatra
- Select Tools > Manage Smartcards
- Under Actions, select Generate new Keys
- Select Create a personal GPG keypair (Side note: The foreground text is white with a gray button background here, creating an unrelated accessibility issue)
- Add a name and email address (The textbox is for "name" but if you have only one word in the name, it returns an "Invalid name" error instead of just a generic error. Some cultures have one-word names, so this is also a problem for other reasons)
- Adjust RSA key size to 4096 (which imo should be the default but wasn't)
- Go through several rounds of entering a PIN or Admin PIN
- Generic (two word name) or Invalid name (one word name) error appears
- UI does not show signatures under Keys and Signature, Encryption and Authentication fields are left blank
- Unplug smartcard, move to another computer and open Kleopatra there
- Navigate the Manage Smartcards and Signature, Encryption and Authentication signatures appear under Keys
Edited by huertanix