Projet

Général

Profil

Tuto pgp » Historique » Version 4

pizzacoca, 12/09/2018 21:13

1 1 pizzacoca
# Tutos pgp
2
3
## Manuel Gnupgp
4
https://www.gnupg.org/gph/fr/manual.html#AEN248
5
https://linux.die.net/man/1/gpg2
6
7
## Création des clefs
8
https://keyring.debian.org/creating-key.html
9
http://ekaia.org/blog/2009/05/10/creating-new-gpgkey/
10
https://www.activpart.com/utiliser-openpgp-linux-debian-gnupg/
11
https://help.github.com/articles/generating-a-new-gpg-key/
12
http://gpglinux.free.fr/
13
14
## Gestion des clefs
15
https://gnupg.org/documentation/manuals/gnupg/OpenPGP-Key-Management.html#OpenPGP-Key-Management
16
https://wiki.faimaison.net/doku.php?id=gpg&s[]=gpg
17
18
## Signature des clefs
19
https://www.debian.org/events/keysigning.fr.html
20 2 pizzacoca
21 3 pizzacoca
## Les copains 
22 1 pizzacoca
http://www.giroll.org/
23 3 pizzacoca
24
## En ligne de commande
25 4 pizzacoca
26
Installation de l'outil
27
28
~~~
29
sudo apt-get install gnupg
30
~~~
31
32
33
Génération de la clef
34
35
~~~
36
gpg --full-generate-key
37
~~~
38
39
Il y aura un premier lot de choix à réaliser (type d'utilisation, degré de chiffrement, durée de validité) 
40
> gpg: keyring `/home/user/.gnupg/secring.gpg' created
41
gpg: keyring `/home/user/.gnupg/pubring.gpg' created
42
Please select what kind of key you want:
43
   (1) RSA and RSA (default)
44
   (2) DSA and Elgamal
45
   (3) DSA (sign only)
46
   (4) RSA (sign only)
47
Your selection? **1**
48
RSA keys may be between 1024 and 4096 bits long.
49
What keysize do you want? (2048) **4096**
50
Requested keysize is 4096 bits
51
Please specify how long the key should be valid.
52
         0 = key does not expire
53
      <n>  = key expires in n days
54
      <n>w = key expires in n weeks
55
      <n>m = key expires in n months
56
      <n>y = key expires in n years
57
Key is valid for? (0) **3y**
58
Key expires at Tue 11 May 2019 12:53:08 AM EDT
59
Is this correct? (y/N) **y**
60
61
Ensuite viendront d'autres questions concernant votre identité puis le **mot de passe**
62
63
> You need a user ID to identify your key; the software constructs the user ID
64
from the Real Name, Comment and Email Address in this form:
65
    "Heinrich Heine (Der Dichter) <heinrichh@duesseldorf.de>"
66
Real name: **Test User**
67
Email address: **test@example.org**
68
Comment: 
69
You selected this USER-ID:
70
    "Test User <test@example.org>"
71
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? **o**
72
You need a Passphrase to protect your secret key.
73
passphrase not correctly repeated; try again.
74
We need to generate a lot of random bytes. It is a good idea to perform
75
some other action (type on the keyboard, move the mouse, utilize the
76
disks) during the prime generation; this gives the random number
77
generator a better chance to gain enough entropy.
78
..........+++++
79
80
A ce moment-là c'est une bonne idée de lancer une vidéo, faire des trucs sur le pc
81
(note : il existe un utilitaire qui crée de l'entropie tout seul mais 'jme rapelle plus de son nom)
82
83
> .................................+++++
84
We need to generate a lot of random bytes. It is a good idea to perform
85
some other action (type on the keyboard, move the mouse, utilize the
86
disks) during the prime generation; this gives the random number
87
generator a better chance to gain enough entropy.
88
........+++++
89
.......+++++
90
gpg: /home/user/.gnupg/trustdb.gpg: trustdb created
91
gpg: key 23955501 marked as ultimately trusted
92
public and secret key created and signed.
93
94
A ce moment-là les clefs sont crées (probablement dans ~/.gnupg