Bug 21033 - kleopatra can't generate a new keypair without being started from a terminal emulator
Summary: kleopatra can't generate a new keypair without being started from a terminal ...
Status: RESOLVED DUPLICATE of bug 21222
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Nicolas Lécureuil
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-06 19:02 CEST by Buchan Milne
Modified: 2017-08-11 11:31 CEST (History)
2 users (show)

See Also:
Source RPM: kleopatra-16.12.3-1.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Buchan Milne 2017-06-06 19:02:58 CEST
Description of problem:

If I try and generate a new keypair with kleopatra (started from the KDE menu), it gives the error message "Could not create certificate: Invalid IPC response"

If I start kleopatra from a terminal emulator, when trying to generate a new keypair, it fails creation with the error: "Could not create certificate: Timeout" if a passphrase isn't entered in the terminal from where kleopatra was launched.

In the terminal emulator, while it said I should generate some entropy, it showed:
[bgmilne@localhost ~]$ kleopatra 
QObject(0x0)
QObject(0x0)
QObject(0x0)
Please enter the passphrase to
protect your new key
Passphrase:

The same steps work on Mageia 5 / KDE 4 / kleopatra 4.14.5


Does kleopatra support gnupg 2.1.x (a development vesion)?

[bgmilne@localhost ~]$ gpg2 --list-secret-keys  > /dev/null
gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!




Version-Release number of selected component (if applicable):
16.3.1-1.mga6

How reproducible:


Steps to Reproduce:
1. Log in as a new user
2. Start kleopatra from the KDE menu / krunner
3. File->New Certificate->OpenPGP->Fill in name/email->Next
4. Press 'Create Key' button
5. Get error "Could not create certificate: Invalid IPC response"

6.Quit kleopatra
7. start kleopatra from konsole, then repeat steps 3-5
8. Enter a passphrase in the shell when it prompts for it


(BTW., kgpg doesn't seem to be able to correctly create public/private keypairs either on Mageia 6 sta2, so at present there is no KDE-based solution to get the default wallet type of GPG configured which is unfortunate)
Rémi Verschelde 2017-06-06 20:55:17 CEST

Assignee: bugsquad => kde

Comment 1 Buchan Milne 2017-06-07 07:14:11 CEST
2.1.21 is not a development version, and after fixing the message (see mga#21036), the behaviour is the same (still doesn't create any key when not run with a tty attached).


(kgpg also doesn't work correctly, seems to not result in working decryption).
Big YellowHats 2017-08-10 13:19:50 CEST

CC: (none) => inetcustomer-mageia

Comment 2 Big YellowHats 2017-08-10 13:30:54 CEST
Adding pinentry-qt5 as a dependency as suggested in https://bugs.mageia.org/show_bug.cgi?id=21222 seems to also squish this specific bug.
Big YellowHats 2017-08-10 13:33:35 CEST

Version: Cauldron => 6

Ulrich Beckmann 2017-08-10 17:40:16 CEST

CC: (none) => bequimao.de

Comment 3 Ulrich Beckmann 2017-08-10 18:11:30 CEST
Assigning to Nicolas Lécureuil as the package maintainer.

Assignee: kde => mageia

Comment 4 Nicolas Lécureuil 2017-08-11 11:31:50 CEST
closing as dupplicate, all will be fixed in bug 21222

*** This bug has been marked as a duplicate of bug 21222 ***

Resolution: (none) => DUPLICATE
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.