Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 14/10/2016, à 15:44

francoise_peace

Comment activer gpg --fingerprint ?

Bonjour, j'aimerais signer: https://launchpad.net/codeofconduct

Le problème c'est que je ne comprends rien à ce qu'il faut faire pour signer le code de conduite Ubuntu.

Launchpad a écrit :

To start using an OpenPGP key with your Launchpad account, simply paste its fingerprint below. The key must be registered with the Ubuntu key server.

Launchpad a écrit :

There seems to be a problem with the fingerprint you submitted. You can get your gpg fingerprint by opening a terminal and typing:
gpg --fingerprint
Please try again.

gpg --fingerprint

Ne me donne aucun résultat.

Hors ligne

#2 Le 14/10/2016, à 16:43

genma

Re : Comment activer gpg --fingerprint ?

Gpg --fingerprint te renvoie l'empreinte de ta clef GPG quand tu en as une. Il est fort probable que tu n'en n'aies pas (tu n'en as pas par défaut, il te faut en créer une).

je ne comprends rien à ce qu'il faut faire

C'est une très mauvaise pratique de faire des commandes si on ne les comprend pas. Si on te donne une commande qui efface tout par exemple, comment sauras tu qu'il ne faut pas la faire? Il te faut apprendre & comprendre en fonction de ce que tu veux faire. Tu n'as pas tout à apprendre/comprendre mais si tu veux faire quelque chose, il te faut le comprendre.

Là, il te faut apprendre c'est quoi GPG, comment ça marche, le but etc. Bon courage.


"Lorsque tu as découvert le libre, tu sais que tu ne pourras plus jamais revenir en arrière".
Utilisateur d'Ubuntu depuis la version 4.10 !
Mon blog ?      https://blog.genma.fr
Mon twitter?     http://twitter.com/genma

Hors ligne

#3 Le 20/10/2016, à 11:55

francoise_peace

Re : Comment activer gpg --fingerprint ?

Il m'efface tout le temps les réponses. Je ne suis qu'un simple utilisateur Ubuntu, donc pas forcée de me casser la tête avec des concepts abstraits.

Et donc j'ai réussis après maintes tentatives et bêtises à créer une clé, et à me mettre en clé dans Logiciels Ubuntu > Logiciels et Mises à jour (ancien sources de logiciels).

J'ai fait:

gpg2 --gen-key

Tout apparaît maintenant dans:

gpg --fingerprint

La clé à importer dans les Logiciels et MAJ est dans mon home dans:

.gnupg/pubring.gpg

Le fingerprint ne marche toujours pas, c'est écrit qu'il faut attendre quelques heures. Je re-essayerais demain. Le fingerprint c'est l'Empreinte de la clef.

Hors ligne

#4 Le 20/11/2016, à 18:41

francoise_peace

Re : Comment activer gpg --fingerprint ?

Launchpad n'accepte pas ma clé. Je re-essaierai dans quelques mois quand j'aurai re-installé mon LTS et que j'aurai une nouvelle clé. C'est que pour moi-même que j'essaie.

gpg --fingerprint
/home/fran/.gnupg/pubring.gpg
-----------------------------
pub   2048R/A2E3B04B 2016-10-20
      Empreinte de la clef = 909E 8BC0 E4FC F267 A40F  4B4C 8B1B 9703 A2E3 B04B
uid                  Francoise AAA <monmail@monmail.fr>
sub   2048R/C90455D5 2016-10-20

Hors ligne

#5 Le 10/12/2016, à 16:02

francoise_peace

Re : Comment activer gpg --fingerprint ?

Il y a ce truc-là que je n'avais pas fait: créer un nouveau fichier de clé même si j'ai déjà un fingerprint smile Finalement non, cela m'a fait 2 clés à mon nom ?! J'ai alors effacé la clé surnuméraire.

Launchpad a écrit :

Step 1 open Passwords and Encryption Keys.
Step 2 Select File > New, select PGP Key and then follow the on-screen instructions.
Now you'll see your new key listed in the Passwords and Encryption Keys tool.

J'avais mis les mêmes détails dedans, il n'y a que dans le Ubuntu en anglais que je comprends les indications parce que ce sont les mêmes mots. Mais là c'était la même opération en double. Maintenant il faut exporter la clé vers un serveur accessible par Launchpad.

Launchpad a écrit :

Step 1 Open Passwords and Encryption Keys.
Step 2 Select the My Personal Keys tab, select your key.
Step 3 Select Remote > Sync
and Publish Keys from the menu. Choose the Sync button. (You may need to add hkp://keyserver.ubuntu.com to your key servers if you are not using Ubuntu.)

OK, il faut choisir le serveur: hkp:keyserver.ubuntu.com:11371 puis SYNC.

Aha:

Launchpad a écrit :

A message has been sent to XXX@XXX.XXX, encrypted with the key XX99/XX99. To confirm the key is yours, decrypt the message and follow the link inside.

C'est pas fini il faut que le mail lise un code wow qu'il ne lit pas:

Launchpad - email a écrit :

Hello,

This message contains the instructions for confirming registration of an
OpenPGP key for use in Launchpad.  The confirmation instructions have been
encrypted with the OpenPGP key you have attempted to register.  If you cannot
read the unencrypted instructions below, it may be because your mail reader
does not support automatic decryption of "ASCII armored" encrypted text.

Exact instructions for enabling this depends on the specific mail reader you
are using.  Please see this support page for more information:

    https://help.launchpad.net/ReadingOpenPgpMail

For more general information on OpenPGP and related tools such as Gnu Privacy
Guard (GPG), please see:

    https://help.ubuntu.com/community/GnuPrivacyGuardHowto

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.11 (GNU/Linux)

XXXXXXXXXXXXXXXXcodeXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Aucune idée de à quoi sert le code de conduite Ubuntu mais pour confirmer le lien il faut faire cela:

Launchpad a écrit :

As an alternate method you can read the message from the terminal. Copy and paste the message from "-----BEGIN PGP MESSAGE-----" till "-----END PGP MESSAGE-----" including those two lines in a text file. From the terminal run "gpg -d opgpm.txt" excluding the quotes where "opgpm" is the name you gave the text file. You will be asked to enter your passphrase and you get the decrypted message.

sudo gedit opgpm.txt
cat opgpm.txt
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.11 (GNU/Linux)
XXXXXXX
-----END PGP MESSAGE-----
 sudo gpg -d opgpm.txt
gpg: encrypted with 2048-bit RSA key, ID XX99, created 2016-12-10
      "Prénom Nom <XXX@XXX.XXX>"
gpg: decryption failed: secret key not available

...

gpg --list-keys
/home/fran/.gnupg/pubring.gpg
XXX

Je me suis débrouillée pour que ma clé disparaîsse, apparement il faut l'exporter puis l'importer de nouveau, mais ça n'a pas fonctionné avec pubring.gpg comme nom vu que c'est le nom à défaut. Donc il faut se servir du logiciel plûtot que cela. Je re-essaierai plus tard car il faut tout recommencer. Ou alors il fallait laisser 2 clés pareilles sauf pour le code mais je m'en doute. C'est trop compliqué.

*-*-*-*-*-*-*-*

Quatrième fois que je recommence tout. Je ne comprends toujours pas à quoi sert ce que je fais, mais c'est mal fait. Donc il faut faire mieux.

Je vais suivre ce tutoriel sur le terminal, mon problème est d'obtenir les mots:

Launchpad a écrit :

gpg: key D8FC66D2 marked as ultimately trusted
public and secret key created and signed.

au début. Si je n'ai pas secret key au début c'est qu'il y a un problème dans le make of.

gpg: key XX99 marked as ultimately trusted
public and secret key created and signed.

Donc ça va pour l'instant, continuons le tutoriel.

Dernière modification par francoise_peace (Le 10/12/2016, à 17:46)

Hors ligne