Page MenuHome GnuPG

Bug general
Closed, ResolvedPublic

Description

J’ai une erreur générale qui ne me permet pas de générer des clefs.

L’importation des clefs semble effective, mais elles n’apparaissent pas.

Je ne comprends pas quoi faire pour que le chiffrement fonctionne correctement sur mon ordinateur.

Pourriez-vous m’aider ?


I kindly ask you to find my logs.

I have a general error that does not allow me to create keys.

The import of the keys seems effective, but they do not appear.

I do not understand what to do to make encryption work properly on my computer.

Could you help me ?

Details

Version
3.0.3

Event Timeline

Could you please try on the command line. (If you don't know how, see: https://www.wikihow.com/Open-the-Command-Prompt-in-Windows )

and enter in the command line:

gpg --gen-key

And follow the prompts on the command line.
This should either work or possibly show a better error then the general error.

Please let us know how it went. We are trying to find failure scenarios that would result in a general error to handle them better.

aheinecke triaged this task as Normal priority.Feb 28 2018, 4:49 PM
aheinecke added a project: Info Needed.

Is it possible that your %APPDATA% directory is redirected? Maybe you are running into T3818 I also got "General Error" when trying to generate a key because of that bug.

As a workaround use the command line or Open "Advanced" settings in Kleopatra when generating a key and select the checkboxes next to "RSA".

C:\Users\XavierFRUTON>gpg --gen-key
gpg (GnuPG) 2.2.4; Copyright (C) 2017 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Remarque : Utilisez « gpg --full-generate-key » pour une fenêtre de dialogue de génération de clef complète.

GnuPG doit construire une identité pour identifier la clef.

Nom réel : Xavier Fruton - Aequivalens
Adresse électronique : x.fruton@aequivalens.fr
Vous avez sélectionné cette identité :

« Xavier Fruton - Aequivalens <x.fruton@aequivalens.fr> »

Changer le (N)om, l'(A)dresse électronique ou (O)ui/(Q)uitter ? o
De nombreux octets aléatoires doivent être générés. Vous devriez faire
autre chose (taper au clavier, déplacer la souris, utiliser les disques)
pendant la génération de nombres premiers ; cela donne au générateur de
nombres aléatoires une meilleure chance d'obtenir suffisamment d'entropie.
De nombreux octets aléatoires doivent être générés. Vous devriez faire
autre chose (taper au clavier, déplacer la souris, utiliser les disques)
pendant la génération de nombres premiers ; cela donne au générateur de
nombres aléatoires une meilleure chance d'obtenir suffisamment d'entropie.
gpg: lookup_hashtable failed: Erreur système inconnue
gpg: trustdb: searching trust record failed: Erreur système inconnue
gpg: Erreur : la base de confiance est corrompue
gpg: Vous pourriez essayer de recréer la base de confiance avec les commandes :
gpg: cd C:\Users\XavierFRUTON\AppData\Roaming\gnupg
gpg: gpg --export-ownertrust > otrust.tmp
gpg: del trustdb.gpg
gpg: gpg --import-ownertrust < otrust.tmp
gpg: Si cela ne fonctionne pas, veuillez consulter le mode d'emploi

J'ai donc supprimé le fichier trustdb.gpg
j'ai relancé et ça a bien fonctionné.

Merci pour votre aide.

So I deleted the trustdb.gpg file
I restarted and it worked well.

Thanks for your help.

aheinecke claimed this task.

At some point we really need to look at better error handling so that such an error would be more visible in the UI.