keybase / keybase/keybase-issues

add an exclamation mark to the commandlines: gpg --sign -u "xxx!"

Open
#1,373 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
899
Forks
40
PR merge metrics
No merged PRs in 30d

Description

I have my master private key on a different smart card than the sub keys I use day by day. Eventhough the specific key is specified, the sign operation can fail, if gpg tries the wrong one first.
It is easily solveable py adding an exclamation mark:

not working for me :
gpg -u 'b51ba150670f5adf47f34f4cdcc6e50f0ae275a9' -a --sign

works:
gpg -u 'b51ba150670f5adf47f34f4cdcc6e50f0ae275a9!' -a --sign

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the command-line handling for signing and inspect how the -u option is passed to gpg. Reproduce the two commands from the issue with keys on separate smart cards. Done means the requested key can be selected reliably using the exclamation-mark form.

Written by the indexing model from the issue text.

Assessment

Domain
cli, cryptography
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.