Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| software:applications:gpg:exporter-cles-chiffrement [2020/10/23 15:31] – yoann | software:applications:gpg:exporter-cles-chiffrement [2026/04/10 10:45] (Version actuelle) – yoann | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| {{tag> | {{tag> | ||
| - | ====== gpg: Exporter et reinstaller | + | ====== gpg: Exporter et réinstaller |
| Lorsque l' on souhaite pouvoir chiffrer/ | Lorsque l' on souhaite pouvoir chiffrer/ | ||
| + | |||
| + | Pour lister les clés disponibles sur le système : | ||
| <code bash> | <code bash> | ||
| + | gpg2 --list-keys | ||
| + | </ | ||
| + | |||
| + | ===== Exporter la clé publique ===== | ||
| + | |||
| + | Pour exporter la clé, il faut fournir l' | ||
| + | <code bash> | ||
| + | gpg2 --armor --export " | ||
| </ | </ | ||
| - | + | ||
| + | |||
| + | ===== Exporter la clé privée ===== | ||
| + | |||
| + | Lorsque l' | ||
| + | |||
| + | <code bash> | ||
| + | gpg2 --armor --export-secret-key " | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | Le processus d' | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Importer les clés ===== | ||
| + | |||
| + | On importe les clés publiques ou privées via l' | ||
| + | |||
| + | <code bash> | ||
| + | gpg2 --import yoann-private.key | ||
| + | gpg2 --import yoann-public.key | ||
| + | </ | ||
| + | |||
| ===== Références ===== | ===== Références ===== | ||
| - | | + | |
| + | | ||
| * https:// | * https:// | ||