2594 shaares
89 private links
89 private links
A helpful script which automates rotating the key stubs for gpg to recognize which smartcard we want to use. No clue why gpg does not do this on its own but there we are.
Useful if you have multiple smartcards (e.g. yubikeys) that you use to decrypt/sign/whatever and you change between them. Gets rid of gpg telling you you have the wrong smartcard inserted (before working a-ok).
Very hacky (if you actually look inside the shellscript) and could perhaps be improved in several ways.