(kubuntu, but trying to remain platform independent in my approaches.)
Either of conceptual explanations or necessary steps are appreciated.
I'm reading through the documentation, and tried to get gpg-agent
to work once, but am getting discouraged as each attempt will require a reboot, and I don't really understand how it works in the first place (just cutting and pasting code).
I want to use gpg-agent
so that I can try out GNUS
without entering passphrase on .authinfo.gpg
every time I open GNUS
.
I'd like to understand more about the process before I dig into the problem more.
- Is a
gpg --gen-key
necessary before usinggpg-agent
for.authinfo.gpg
? - Are the config lines mentioning
SSH
necessary for my minimal use ofgpg
? - Is
.authinfo.gpg
to take position on some keychain? Does that keychain itself need a master key?
Please correct me on the imagined flow of the process. (Is an absent key needed?). I regret that it is very sparse.
- After boot, initialization turns on the
gpg
daemon, and other related settings are made. - When
GNUS
accesses.authinfo.gpg
, it caches something withgpg-agent
.
Here are some more details I consider.
The following variables are set
GPG_AGENT_INFO ${HOME}/.gpg-agent-info
GPG_TTY $(TTY)
In ~/.gnupg/gpg.conf
, we need to see use-agent
. I leave the dummy #default-key ********
commented out, as I believe it's only needed if you have more than one key.
In ~/.gnupg/gpg-agent.conf
, we need to see
pinentry-program /usr/bin/pinentry-qt4
no-grab
default-cache-ttl 1800
(Though, pinentry-qt4
might be replaced with other present versions, such as pinentry-curses
.)
There may be some redundancies, but I've also seen lines for I assume .bashrc
, such as eval $(gpg-agent --daemon)
, or
gpg-agent --daemon \
--write-env-file "${HOME}/.gpg-agent-info"
(I've omitted lines regarding SSH
, as I assume I don't need this for now.)
I've seen a troubleshooting command
echo "test" | gpg -ase -r 0xMYKEYID | gpg
but since I wasn't sure if I needed a key in the first place, I didn't go further with this.