gpg --full-gen-key doesn't show list of keys on card (regression)
Closed, ResolvedPublic

Assigned To
Authored By
• alexk
Dec 13 2024, 3:12 PM

Description

When trying to generate a new key-block with crypto from a smartcard doesn't show the keys on the card.

Procedure to reproduce:

  1. insert a card with an existing key unknown in the keyring
  2. > gpg --full-gen-key
  3. > (14) Existing key from card
  4. ⇒ no keys are displayed

This regression might be introduced in October 2024 in the gnupg 2.6 branch.

During testing the above another glitch occurred: when trying to save the key the keyboxd throws an SQL error "constraint violation". It's unclear if this correlates.

Details

Version
2.5.2

Event Timeline

• gniibe triaged this task as Normal priority.
• gniibe changed the task status from Open to Testing.Dec 16 2024, 2:00 AM
• ikloecker edited projects, added gnupg24, gnupg26; removed gnupg.
• ikloecker added a subscriber: • ikloecker.

Re-opening because I think rGaa36f6ae8bae needs to be backported to GnuPG 2.4 (see T7568). The fix for T7309 which introduced the regression has been backported to GnuPG 2.4.