Browse Source

Mise a jour conf gpg-agent

master
vlaborie 3 years ago
parent
commit
3a502bb33e
1 changed files with 2 additions and 8 deletions
  1. +2
    -8
      HowtoGPG.md

+ 2
- 8
HowtoGPG.md View File

@@ -60,20 +60,14 @@ L'agent GPG garde en mémoire la passphrase de vos clés mais fait aussi office
enable-ssh-support
pinentry-program /usr/bin/pinentry-qt
log-file $HOME/.gnupg/gpg-agent.log
use-standard-socket
~~~

Fichier `.bashrc` (ou `.zshrc`) :

~~~
pgrep -u $USER gpg-agent > /dev/null
if [ $? == 0 ]; then
source ~/.gnupg/gpg-agent-$(hostname).env
else
gpg-agent --daemon > ~/.gnupg/gpg-agent-$(hostname).env
eval $(<~/.gnupg/gpg-agent-$(hostname).env)
fi
pgrep -u $USER gpg-agent > /dev/null || gpg-agent --daemon
export GPG_TTY=$(tty)
export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
gpg-connect-agent updatestartuptty /bye
~~~



Loading…
Cancel
Save