Re: gpg-agent support for GNUPGHOME and systemd

2020-08-20 Thread Werner Koch via Gnupg-users
Hi! On Wed, 19 Aug 2020 23:19, Ben Fiedler said: > % gpgconf --dry-run --create-socketdir > gpgconf: socketdir is '/run/user/1000/gnupg/d.6oynbz4mc38pz8n5gyedka7a' > gpgconf: non-default homedir > > This is pretty unexpected to me, why is this the case? And is there a > way to mitigate this

gpg-agent support for GNUPGHOME and systemd

2020-08-20 Thread Ben Fiedler
Hi, I'm using gpg together with a custom GNUPGHOME ($HOME/.config/gnupg) and the systemd user unit provided in the basic Debian sid install and a smart card (Yubikey). I am doing both signing/decryption and authentication (ssh) using gpg, which leads to two different instances of gpg-agent being

Re: gpg-agent support for GNUPGHOME and systemd

2020-08-20 Thread Ben Fiedler
On Wed Aug 19, 2020 at 10:10 PM, Ben Fiedler wrote: Relevant env vars: DBUS_SESSION_BUS_ADDRESS correctly set GNUPGHOME=${HOME}/.config/gnupg, set for both the systemd service and GPG_TTY=$(tty) set and exported in .zshrc SSH_AUTH_SOCK=${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh set and exported in