Page MenuHome GnuPG

gpg-agent doesn't work if started with "eval $(gpg-agent --daemon)"
Closed, ResolvedPublic

Description

Test:

  1. ssh on the test machine.
  2. eval $(gpg-agent --daemon)

to start the agent.

  1. gpgsm --import a-secret-SMIME-key.p12

Import a secret smime key.

> It hangs.(Failure)

It should appear a pinentry
After: A pinentry process became a zombie

But:

  1. ssh on machine.
  2. gpg-agent --daemon
  3. Use the result export line.
  4. gpgsm --import a-secret-key.p12

pinentry-curses password query appears.

Details

Version
2.0.16

Event Timeline

ludwig added projects: gpgagent, gnupg, Bug Report.
ludwig added subscribers: emanuel, ludwig.

This is not a bug but expected behaviour: We want to show the pinentry on the
correct xserver or tty and thus gpg-needs to know which one it is. The manual
has even a hint how to show the pinentry on the client machine:

gpg-connect-agent updatestartuptty /bye