Pinentry-mode loopback doesn't tell the user which PIN it's asking for

Werner Koch wk at gnupg.org
Tue May 5 13:45:17 CEST 2026


On Tue,  5 May 2026 11:51, Jernej Jakob said:

> It works fine with pinentry-mode=loopback, but it doesn't say which PIN

That is a kludge for unattended use.

> Is it possible to make gpg say which PIN it's asking for, the same way
> that pinentry does?

No, it does not know.  gpg-agent knows that.  Either you write your own
pinentry in a simialr manner as Emacs did it.  Or if you have no GUI,
just use a curses based Pinentry or the pinentry-tty.  The curses mode
is actually the fallback for the GUI pinentries if DISPLAY is not set.
You may need to redraw the screen, as it is the case with many curses
applications, but gpg supports this by emitting a PINENTRY_LAUNCHED
status line.


Salam-Shalom,

   Werner

-- 
The pioneers of a warless world are the youth that
refuse military service.             - A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 284 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20260505/bc9b3c31/attachment.sig>


More information about the Gnupg-devel mailing list