Store pgp passphrase in KDE



We will now see how KDE stores the passphrase of our pgp key, so that it does not ask us the same, allowing us to perform tasks that require work with these keys.

First, you must follow the steps indicated in:

wiki:"Store ssh passphrase with kwallet"

Then create the configuration file for pgp. To do this, from the terminal (NOTE: all the steps are without using root or being in administrator mode):

nano ~/.gnupg/gpg-agent.conf

For password caching in SSH emulation mode, set default-cache-ttl-ssh and max-cache-ttl-ssh to the following values (NOTE: copy and paste these values into the newly created file):
default-cache-ttl-ssh 60480000
max-cache-ttl-ssh 60480000

Save the file (Ctrl+o) and exit (Ctrl+x). Reboot the system. Ready.

After this change, when the pgp passphrase is asked, there will be the option to remember it.