-
-
Save tknv/43604e851a371949343b78261c48f190 to your computer and use it in GitHub Desktop.
default-cache-ttl 28800 | |
# 8 hours | |
pinentry-program /usr/bin/pinentry-curses | |
allow-loopback-pinentry |
I could check set values by;
gpgconf --list-options gpg-agent
I am not sure your command shows actually applied config params.
--gpgconf-list
This command is similar to --list-config but in general only internally used by the gpgconf tool.
from man page of gpg2.
You where right. gpgconf --list-options gpg-agent
shows the correct value. Let me check if it is now properly caching for an hour as opposed to the default ten minutes.
Try gpg-connect-agent reloadagent /bye
to reload agent.
I want to use gpg signing in git and set a very long passphrase cache, but for some reason git doesn't pick up the settings I listed in ~/.gnupg/gpg-agent.conf
:
default-cache-ttl 1209600
max-cache-ttl 31536000
Also my global .gitconfig
file:
[commit]
gpgSign = true
What am I missing?
Update: I posted this as a question on StackOverflow.
I have provided you with my solution. I'm prompted by the gpg agent once an hour to provide my credentials for the key.
Hi @PaulRBerg, I did not try gpg sign to my commit, looks it is way to do.
https://stackoverflow.com/questions/10161198/is-there-a-way-to-autosign-commits-in-git-with-a-gpg-key
Also,
https://gist.github.com/mort3za/ad545d47dd2b54970c102fe39912f305
Hi @marcofranssen, I check my conf now then there are;
FYI: https://superuser.com/questions/624343/keep-gnupg-credentials-cached-for-entire-user-session#:~:text=The%20default%20value%20is%20600,for%20maximum%2Dcache%2Dttl%20.&text=But%20for%20this%20change%20to,kill%20the%20daemon%20at%20logout.
But...yours are looks issue.