Wanted to start signing my mails and my git commits with my newly minted sub key. But when I did a
gpg2 --list-keys
I could not see the key ids to add to my git nor to my muttrc. After some searching around I found this nifty gpg argument that gave me what I wanted.
gpg2 --keyid-format LONG --list-keys
The LONG
stands for the 16 character ID. And alternatively you can also define short
for the 8 character one.