drduh/config

Question for you: what is the function of default-key and trusted-key in gpg.conf?

chapb opened this issue · 2 comments

chapb commented

It looks like in the latest commit of the gpg.conf file, it adds several lines which includes your gpg key as a default-key and trusted-key. I just wanted to confirm the function of those two arguments, as there's little documentation online.

Thanks! Loved the guide.

drduh commented

Those options select my key ID as the default identity to try when calling decrypt operations. It's useful in combination with throw-keyids since the recipient identity is not included in the ciphertext, forcing gpg to cycle all identities when decrypting. This can be annoying if you have several identities/keys. I'll make a note in the next push, thanks!

chapb commented

That makes sense - thanks!