Created
November 17, 2016 17:28
-
-
Save tknv/43604e851a371949343b78261c48f190 to your computer and use it in GitHub Desktop.
~/.gnupg/gpg-agent.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default-cache-ttl 28800 | |
# 8 hours | |
pinentry-program /usr/bin/pinentry-curses | |
allow-loopback-pinentry |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.