GPG homedir path length limit

John Lane gnupg at
Sun Jan 15 00:39:20 CET 2017

Just experimenting in a sandbox homedir, I noticed that the homedir path
needs to be below a certain size.

    $ pwd


    $ mkdir -m 700 alice.gpg

    $ gpg --homedir alice.gpg --gen-key

    gpg: can't connect to the agent: IPC connect call failed

    $ gpg-agent --homedir alice.gpg --daemon

    gpg-agent[3857]: socket name
is too long

Changing to a shorter path works fine.

More information about the Gnupg-users mailing list