From: Sam Jorna <wraeth@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] gnupg 2.1: mutt asks for the passphrase twice
Date: Fri, 18 Nov 2016 08:20:17 +1100 [thread overview]
Message-ID: <20161117212016.GA13542@cerberus.civica.com.au> (raw)
In-Reply-To: <20161117210808.GB20975@tp.fritz.box>
[-- Attachment #1: Type: text/plain, Size: 1065 bytes --]
On Thu, Nov 17, 2016 at 10:08:08PM +0100, Frank Steinmetzger wrote:
> Hey fellows,
>
> apparently, gnupg 2.1 does not recognise my passphrase anymore if I enter it
> in mutt’s terminal: I compose a signed mail in mutt and send it off. Thus I
> am asked for the passphrase first on the terminal (as it has always been),
> and then a second time in a graphical pinentry window.
>
> The latter did not happen with gnupg 2.0 (double-checked by downgrading).
> Does anyone have a hint what’s wrong here and how I can fix this?
I just recently resolved this myself. You need to add
--pinentry-mode loopback
to the relevant commands in your muttrc:
set pgp_decode_command="gpg --pinentry-mode loopback %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
set pgp_verify_command="gpg --pinentry-mode loopback --no-verbose --batch --output - --verify %s %f"
set pgp_decrypt_command="gpg --pinentry-mode loopback --passphrase-fd 0 --no-verbose --batch --output - %f"
--
Sam Jorna (wraeth)
GnuPG Key: D6180C26
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 977 bytes --]
next prev parent reply other threads:[~2016-11-17 21:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-17 21:08 [gentoo-user] gnupg 2.1: mutt asks for the passphrase twice Frank Steinmetzger
2016-11-17 21:20 ` Sam Jorna [this message]
2016-11-17 21:26 ` Sam Jorna
2016-11-19 0:42 ` Frank Steinmetzger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161117212016.GA13542@cerberus.civica.com.au \
--to=wraeth@gentoo.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox