Page MenuHome GnuPG

gpg --edit-card does not display openpgp info on connected card
Closed, ResolvedPublic

Description

Connect a Yubikey with keys on it.

gpg --edit-card
[...]
Reader ...........: Yubico YubiKey OTP FIDO CCID 0
Application ID ...: D2760001240100000006154949930000
Application type .: OpenPGP
Version ..........: 1.0
Manufacturer .....: ?
Serial number ....: 15494993
Name of cardholder: [nicht gesetzt]
Language prefs ...: [nicht gesetzt]
Salutation .......:
URL of public key : [nicht gesetzt]
Login data .......: [nicht gesetzt]
Signature PIN ....: nicht zwingend
Max. PIN lengths .: 3 -2 0
PIN retry counter : 0 0 0
Signature counter : 0
Signature key ....: [none]
Encryption key....: [none]
Authentication key: [none]
General key info..: [none]

quit
gpg-card l 0 openpgp
gpg --edit-card
[...]
Reader ...........: Yubico YubiKey OTP FIDO CCID 0
Application ID ...: D2760001240100000006154949930000
Application type .: OpenPGP
Version ..........: 3.4
Manufacturer .....: Yubico
Serial number ....: 15494993
Name of cardholder: [nicht gesetzt]
Language prefs ...: [nicht gesetzt]
Salutation .......:
URL of public key : [nicht gesetzt]
Login data .......: [nicht gesetzt]
Signature PIN ....: nicht zwingend
Key attributes ...: rsa3072 rsa3072 rsa2048
Max. PIN lengths .: 127 127 127
PIN retry counter : 3 0 3
Signature counter : 5
KDF setting ......: off
UIF setting ......: Sign=off Decrypt=off Auth=off
Signature key ....: B1AA 5DAD EEC1 A157 3F78  B593 B548 8A5F 0920 C399
      created ....: 2023-04-19 09:36:25
      keygrip ....: 0882A0B98E72DF321F1F964CB1333C5434CDE33A
Encryption key....: 21F0 46EA 39FE B856 A7DF  4D3C 3985 207B 705D 8F17
      created ....: 2023-04-19 09:36:25
      keygrip ....: F718F9328157913E9B9C1CA29DB044618B4DBBF5
Authentication key: [none]
General key info..: [none]

Details

Version
gpg4win-4.1.1-beta284.exe

Revisions and Commits

Event Timeline

werner changed the task status from Open to Testing.Apr 20 2023, 12:14 PM
werner triaged this task as Normal priority.
werner moved this task from Backlog to QA on the gnupg24 board.
werner added a project: scd.

Not easy to fix because gpg --card-edit/-status has some support form other cards. Eventually these commands will be replaced by gpg-card. In the meantime we can use this hack:

Reader ...........: 1050:0407:X:0
Application ID ...: D2760001240100000006154932830000
Application type .: OpenPGP
Version ..........: 1.0
Manufacturer .....: ?
Serial number ....: 15493283
Name of cardholder: [not set]
Language prefs ...: [not set]
Salutation .......:
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: not forced
Max. PIN lengths .: 3 -2 0
PIN retry counter : 0 0 0
Signature counter : 0
Signature key ....: [none]
Encryption key....: [none]
Authentication key: [none]
General key info..: [none]

Please try command "openpgp" if the listing does not look correct

gpg/card> openpgp

[correct listing follows]
ebo moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.

The workaround works.

Closing. A small change in Kleopatra (T6472) should help to avoid using this hack in common cases.