-
Notifications
You must be signed in to change notification settings - Fork 13
/
gpg-agent.conf
50 lines (42 loc) · 2.23 KB
/
gpg-agent.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# ╔═══════════════════════════════════════════════════════════════════════════╗
# ║ gpg-agent configuration (~/.gnupg/gpg-agent.conf) ║
# ║ ║
# ║ Note: ║
# ║ After changing the configuration, reload the agent: ║
# ║ $ gpg-connect-agent reloadagent /bye ║
# ╚═══════════════════════════════════════════════════════════════════════════╝
# Time a cache entry is valid (in seconds) default: 600
# Each time a cache entry is accessed, the entry's timer is reset
default-cache-ttl 600
# Select PIN entry program (qt, curses, gnome3,...)
# On Gentoo Linux: see also 'eselect pinentry list'
# pinentry-program /usr/bin/pinentry-tty
# pinentry-program /usr/bin/pinentry-curses
pinentry-program /usr/bin/pinentry-gnome3
# Use GnuPG agent for SSH keys (instead of ssh-agent)
# Note: Make sure that gpg-agent is always started with login.
#
# This can be done by adding the following to ~/.bashrc:
# # Start gpg-agent if not already running
# if ! pgrep -x -u "${USER}" gpg-agent &> /dev/null; then
# gpg-connect-agent /bye &> /dev/null
# fi
#
# Additionally add:
# # Set SSH to use gpg-agent (see 'man gpg-agent', section EXAMPLES)
# unset SSH_AGENT_PID
# if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
# # export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
# export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
# fi
#
# # Set GPG TTY as stated in 'man gpg-agent'
# export GPG_TTY=$(tty)
#
# # Refresh gpg-agent tty in case user switches into an X session
# gpg-connect-agent updatestartuptty /bye > /dev/null
#
# For more details, see https://wiki.archlinux.org/title/GnuPG#SSH_agent
# enable-ssh-support
# Time a SSH cache entry is valid
# default-cache-ttl-ssh 600