0

I added a second signing subkey to my GPG key, which I then moved to a Yubikey:

/home/user/.gnupg/pubring.kbx
----------------------------
sec#  ed25519/ABCDECAD 2023-11-12 [SC]
      ...(fingerprint omitted)...
uid         [ultimate] Joost Molenaar <a@b.cd>
uid         [ultimate] Joost Molenaar <b@c.de>
ssb   ed25519/BCDE155E 2023-11-12 [S] [expires: 2024-11-11]
ssb>  ed25519/CDEFFDB0 2023-11-15 [S] [expires: 2024-11-14]

Now, when I sign something, for example using gpg --clearsign --armor <<<test, I always get asked for the Yubikey, and can only use the local BCDE155E key if I explictly ask for it with the --local-user BCDE155E! option.

Is there a way of making GPG use the CDEFFDB0 key if the card is present, but falling back to the BCDE155E key if the card is not present?

j0057
  • 101
  • 1

0 Answers0