Bug 19391

Summary: KMail, Kleopatra: Cannot enter pgp passphrase
Product: Mageia Reporter: Ulrich Beckmann <bequimao.de>
Component: RPM PackagesAssignee: KDE maintainers <kde>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: eatdirt, mageia
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: gnupg2.x86_64 version 2.0.30-3.mga6 CVE:
Status comment:

Description Ulrich Beckmann 2016-09-17 08:06:56 CEST
When I try to sign an email I get this error message:
Could not compose message: Bad passphrase

There is no dialog to enter the passphrase. The self-test of Kleopatra shows no errors. I see my PGP certificates listed.

Reproducible: always

gpg-agent was configured automatically.
-----------------------------------------------------------------------------
[bequimao@linux ~]$ ps -ef | grep gpg-agent
bequimao  4138  4080  0 07:30 ?        00:00:00 /usr/bin/gpg-agent --daemon --keep-display --use-standard-socket
bequimao 10027 13878  0 07:54 pts/0    00:00:00 grep --color gpg-agent
[bequimao@linux ~]$ 
------------------------------------------------------------------------------
I guess that the option --pinentry-program /usr/bin/pinentry-qt is missing.

Installed from Mageia-6-RC-x86_64-DVD of 16-08-13

Ulrich
Ulrich Beckmann 2016-09-17 08:12:22 CEST

Assignee: bugsquad => kde
Source RPM: (none) => gnupg2.x86_64 version 2.0.30-3.mga6

Comment 1 Nicolas Lécureuil 2016-09-18 13:09:06 CEST
what gives :   rpm -qa | grep pinentry          ?

CC: (none) => mageia

Comment 2 Ulrich Beckmann 2016-09-18 15:31:51 CEST
# rpm -qa | grep pinentry
pinentry-0.9.7-1.mga6
pinentry-qt4-0.9.7-1.mga6
Comment 3 Nicolas Lécureuil 2016-09-19 10:28:24 CEST
confirmed here

Status: NEW => ASSIGNED

Comment 4 Chris Denice 2016-11-18 09:38:56 CET
Hi guys,
could you try to remove --keep-display from the options in /etc/sysconfig/gnupg2

such that:

cat /etc/sysconfig/gnupg2
GPGAGENT_PARAMS="--use-standard-socket"

then

systemctl --user restart gpg-agent

and see if it helps. I think it should fix the bug.

CC: (none) => eatdirt

Comment 5 Ulrich Beckmann 2016-11-18 10:36:12 CET
Yes, that works.

Thank you,
Ulrich
Comment 6 Chris Denice 2016-11-18 14:05:00 CET
I pushed gpg2-2.0.30-4.mga6 with the fix. Please reopen the bug is this does not work after the update.

Cheers,
Chris.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED