Choose which secret key to use when doing a gpg --

2019-04-04 02:47发布

问题:

I have multiple secret keys in my GPG keyring.

I'd like to do a gpg -e -s -a to encrypt, sign, and ascii armor the output. However, I also need to specify which secret key to use for the signature, by key id.

回答1:

I needed the --local-user option.

gpg -e -s -a --local-user 0xDEADBEEF -r 0x01234567


标签: gnupg