0

我在 M1 Mac、OS X 12.1 上使用 gpg-agent (GnuPG) 2.3.4。我想extra-socket使用~/.gnupg/gpg-agent.conf. 如果我有

extra-socket $HOME/.gnupg/S.gpg-agent.extra

并运行gpgconf --kill gpg-agent; and gpg-connect-agent reloadagent /bye,代理无法启动。

gpg-connect-agent: no running gpg-agent - starting '/opt/homebrew/Cellar/gnupg/2.3.4/bin/gpg-agent'
gpg-connect-agent: error running '/opt/homebrew/Cellar/gnupg/2.3.4/bin/gpg-agent': exit status 2
gpg-connect-agent: failed to start gpg-agent '/opt/homebrew/Cellar/gnupg/2.3.4/bin/gpg-agent': General error
gpg-connect-agent: can't connect to the gpg-agent: General error
gpg-connect-agent: error sending standard options: No agent running

如果我硬编码套接字的绝对路径

extra-socket /Users/dxia/.gnupg/S.gpg-agent.extra

代理成功启动并工作。

gpg-connect-agent: no running gpg-agent - starting '/opt/homebrew/Cellar/gnupg/2.3.4/bin/gpg-agent'
gpg-connect-agent: waiting for the agent to come up ... (5s)
gpg-connect-agent: connection to the agent established
OK

不支持环境变量extra-socket吗?我很困惑,因为log-filein的 env vargpg-agent.conf工作正常。

log-file $HOME/.gnupg/gpg-agent.log
4

0 回答 0