Mailing List Archive

mutt locking
Hey,

Not sure whether here or mutt list is the right place for this, but here
goes:

---

When encoutering a multipart/encrypted - application/pgp-encrypted file,
mutt asks le for a passphrase, but it does not register the input.

I am using /usr/bin/pinentry-tty for password input, which in the
interactive mode lets me paste a password from the terminal.

With mutt, neither paste nor entry makes a different, it's just frozen
until the pinentry timeout expires.

My config:

* mutt 2.2.7
* pass 1.7.4
* gnupg 2.2.39 ()
* libgcrypt 1.10.1

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: mutt locking [ In reply to ]
On Tue, 20 Sep 2022 16:56, Louis Holbrook said:

> I am using /usr/bin/pinentry-tty for password input, which in the
> interactive mode lets me paste a password from the terminal.

Please use pinentry-curses or, if you run in an xterm, better one of the
GUI pinentries. The pinentry-tty is a very dumb one which is unlikely to
work correctly with another curses or slang application like Mutt.


Shalom-Salam,

Werner

--
The pioneers of a warless world are the youth that
refuse military service. - A. Einstein
Re: mutt locking [ In reply to ]
Well, pinentry-tty is what I prefer for using gpg for all other
operations. Since I'm using the gpg-agent, there doesn't seem to be a way to
specify using an alternative just for mutt.

The only way I know to make that work with gpg cli is to have
--pinentry-mode set to loopback, and pinentry-program in gpg-agent.conf
set to ...pinentry-tty

To be clear:

- I would like to use pinentry-tty during my normal gpg cli operations.
- I am fine with using pinentry-curses in the mutt context

Is there a way to do this?

tudo de bom,
l

On Fri, Sep 23, 2022 at 08:00:55AM +0200, Werner Koch wrote:
> On Tue, 20 Sep 2022 16:56, Louis Holbrook said:
>
> > I am using /usr/bin/pinentry-tty for password input, which in the
> > interactive mode lets me paste a password from the terminal.
>
> Please use pinentry-curses or, if you run in an xterm, better one of the
> GUI pinentries. The pinentry-tty is a very dumb one which is unlikely to
> work correctly with another curses or slang application like Mutt.
>
>
> Shalom-Salam,
>
> Werner
>
> --
> The pioneers of a warless world are the youth that
> refuse military service. - A. Einstein



_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: mutt locking [ In reply to ]
Am Freitag 23 September 2022 18:19:42 schrieb Louis Holbrook via Gnupg-users:
> - I would like to use pinentry-tty during my normal gpg cli operations.
> - I am fine with using pinentry-curses in the mutt context
>
> Is there a way to do this?

FWIW: Probably not, as the pinentry is a configuration of gpg-agent.
In theory you could start a new gpg-agent with a different configuration
option, but pinentry-curses really so bad? :)

Bernhard

--
https://intevation.de/~bernhard ? +49 541 33 508 3-3
Intevation GmbH, Osnabr?ck, DE; Amtsgericht Osnabr?ck, HRB 18998
Gesch?ftsf?hrer Frank Koormann, Bernhard Reiter
Re: mutt locking [ In reply to ]
It's not very bad in a curses environment, but I don't like that it
clears out my terminal when I use it from the command line, and I do
that a LOT.


On Tue, Oct 25, 2022 at 05:16:10PM +0200, Bernhard Reiter wrote:
> Am Freitag 23 September 2022 18:19:42 schrieb Louis Holbrook via Gnupg-users:
> > - I would like to use pinentry-tty during my normal gpg cli operations.
> > - I am fine with using pinentry-curses in the mutt context
> >
> > Is there a way to do this?
>
> FWIW: Probably not, as the pinentry is a configuration of gpg-agent.
> In theory you could start a new gpg-agent with a different configuration
> option, but pinentry-curses really so bad? :)
>
> Bernhard
>
> --
> https://intevation.de/~bernhard ? +49 541 33 508 3-3
> Intevation GmbH, Osnabr?ck, DE; Amtsgericht Osnabr?ck, HRB 18998
> Gesch?ftsf?hrer Frank Koormann, Bernhard Reiter
Re: mutt locking [ In reply to ]
On Tue, Oct 25, 2022 at 05:16:10PM +0200, Bernhard Reiter <bernhard@intevation.de> wrote:

> Am Freitag 23 September 2022 18:19:42 schrieb Louis Holbrook via Gnupg-users:
> > - I would like to use pinentry-tty during my normal gpg cli operations.
> > - I am fine with using pinentry-curses in the mutt context
> >
> > Is there a way to do this?
>
> FWIW: Probably not, as the pinentry is a configuration of gpg-agent.
> In theory you could start a new gpg-agent with a different configuration
> option, but pinentry-curses really so bad? :)
>
> Bernhard

I find it to be really bad when used from within gvim.
The display doesn't work at all (for me), and most of
the time, I end up with a runaway process afterwards
consuming all the CPU which I have to kill manually. I
think pinentry-tty is the only pinentry program that
works in all of the environments that I need it to.

It might be possible to configure gpg-agent to use a
local script as the pinentry program, and that script
distinguishes between use in mutt and everything else
(perhaps by setting an environment variable whenever
mutt is launched), and then execs the preferred
pinentry program for each environment.

cheers,
raf


_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users