I have two keys in my keyring:
jason@host $ gpg --list-keys
/home/jason/.gnupg/pubring.gpg
------------------------------
pub 1024R/B051EDBF 2017-11-27
uid realname <[email protected]>
sub 1024R/4C83269B 2017-11-27
pub 1024R/28FDD919 2017-11-27
uid anothername <[email protected]>
sub 1024R/4C928D6B 2017-11-27
I can sign a file with it
jason@host $ gpg --sign example
And I can verify that signature
other@host $ gpg --verify ~jason/example.gpg
As the user "jason" how do I sign that file instead with the second key in the keyring?
(Note that I am using 1024 bit keys because they generate more quickly. This is POC work and will not be exposed to the internet.)