Page MenuHome GnuPG

~/.gpg-agent-info format/doc mismatches
Closed, ResolvedPublic

Description

There are some mismatching/conflicting info about the format of the
~/.gpg-agent-info file. gpg-agent --write-env-file will write a file containing
"GPG_AGENT_INFO=/tmp/..." but at least one example in the documentation writes
just the value (not the GPG_AGENT_INFO= part) and assume the same format for
reading, and fails if the file was written by --write-env-file. The attached
patch makes the "conflicting" example I found use the same format as
--write-env-file.

Details

Version
2.0.10

Related Objects

Event Timeline

Yeah, I should rework this. What I am using for years is a simple:

  1. Setup information required by GnuPG and ssh. if [ -f "${HOME}/.gpg-agent-info" ]; then . "${HOME}/.gpg-agent-info" export GPG_AGENT_INFO export SSH_AUTH_SOCK export SSH_AGENT_PID fi

in the interactive shell init file along with an invocation of gpg-agent using
--write-env-file. Right, this works only for a Bourne shell.

werner claimed this task.