Gentoo Archives: gentoo-user

From: Sam Jorna <wraeth@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] gnupg 2.1: mutt asks for the passphrase twice
Date: Thu, 17 Nov 2016 21:20:31
Message-Id: 20161117212016.GA13542@cerberus.civica.com.au
In Reply to: [gentoo-user] gnupg 2.1: mutt asks for the passphrase twice by Frank Steinmetzger
1 On Thu, Nov 17, 2016 at 10:08:08PM +0100, Frank Steinmetzger wrote:
2 > Hey fellows,
3 >
4 > apparently, gnupg 2.1 does not recognise my passphrase anymore if I enter it
5 > in mutt’s terminal: I compose a signed mail in mutt and send it off. Thus I
6 > am asked for the passphrase first on the terminal (as it has always been),
7 > and then a second time in a graphical pinentry window.
8 >
9 > The latter did not happen with gnupg 2.0 (double-checked by downgrading).
10 > Does anyone have a hint what’s wrong here and how I can fix this?
11
12 I just recently resolved this myself. You need to add
13
14 --pinentry-mode loopback
15
16 to the relevant commands in your muttrc:
17
18 set pgp_decode_command="gpg --pinentry-mode loopback %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
19 set pgp_verify_command="gpg --pinentry-mode loopback --no-verbose --batch --output - --verify %s %f"
20 set pgp_decrypt_command="gpg --pinentry-mode loopback --passphrase-fd 0 --no-verbose --batch --output - %f"
21
22 --
23 Sam Jorna (wraeth)
24 GnuPG Key: D6180C26

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies