"gpg --card-edit" with multiple card readers (Yubikey)

Juanjo villapla+gnupg-users at uji.es
Fri Jul 7 11:19:47 CEST 2023


I'm using "gpg (GnuPG) 2.3.3" on AlmaLinux 9 and it works fine with a
single "YubiKey 5 USB (5.4.3) [CCID]".

The issue comes when I plug more than one Yubikey.

I can use "gpg --card-status all" to retrieve the information of all
connected Yubikeys or "gpg --card-status ID" (where ID is the value from
field "Application ID") to retrieve the information of a pacific Yubikey.

I have tried to do the same with "gpg --card-edit" but this command does
not support passing the ID of a specific Yubikey and it always selects the
last plugged Yubikey.

So, is there a way to select a specific Yubikey for the "gpg --card-edit"

Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20230707/9e100fb2/attachment.html>

More information about the Gnupg-users mailing list