PGP Public Key Server
De Linuxmemo.
(Différences entre les versions)
(→PPA key via http proxy) |
|||
| Ligne 1 : | Ligne 1 : | ||
[[Catégorie:Securite-outils]] | [[Catégorie:Securite-outils]] | ||
| + | Souvent nous n'avons que la "short KeyID": exemple "ACCAF35C" | ||
| + | |||
| + | Si quelqu'un a passé sa courte ID, vous ne pouvez pas faire autre chose que d'essayer de récupérer toutes les clés pour cet identifiant, et voir s'il y a une collision (et l'espoir que personne ne se cache la véritable clé de vous, et que le passage d'une feinte). | ||
| + | |||
| + | Mais où obtenir la "long KeyID" ? | ||
| + | |||
| + | This option takes values short or 0xshort for short key IDs (without or with 0x prefixed to indicate that it is a hex number) and long or 0xlong for long key IDs | ||
| + | |||
#chercher la clé sur http://keyserver.ubuntu.com/ . La clé porte un numéro en hexa (exemple: 0x6a9653f936fd5529 est 36FD5529 uid Launchpad PPA for atareao) | #chercher la clé sur http://keyserver.ubuntu.com/ . La clé porte un numéro en hexa (exemple: 0x6a9653f936fd5529 est 36FD5529 uid Launchpad PPA for atareao) | ||
| + | http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xACCAF35C | ||
| + | |||
#Importer la clé | #Importer la clé | ||
wget -O- "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x6a9653f936fd5529" | sudo apt-key add - | wget -O- "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x6a9653f936fd5529" | sudo apt-key add - | ||
Version du 18 octobre 2016 à 09:48
Souvent nous n'avons que la "short KeyID": exemple "ACCAF35C"
Si quelqu'un a passé sa courte ID, vous ne pouvez pas faire autre chose que d'essayer de récupérer toutes les clés pour cet identifiant, et voir s'il y a une collision (et l'espoir que personne ne se cache la véritable clé de vous, et que le passage d'une feinte).
Mais où obtenir la "long KeyID" ?
This option takes values short or 0xshort for short key IDs (without or with 0x prefixed to indicate that it is a hex number) and long or 0xlong for long key IDs
- chercher la clé sur http://keyserver.ubuntu.com/ . La clé porte un numéro en hexa (exemple: 0x6a9653f936fd5529 est 36FD5529 uid Launchpad PPA for atareao)
http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xACCAF35C
- Importer la clé
wget -O- "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x6a9653f936fd5529" | sudo apt-key add -
ou
gpg --keyserver keyserver.ubuntu.com --recv-keys votre_n°_de_clé gpg -a --export votre_n°_de_clé | sudo apt-key add -
PPA key via http proxy
Pas besoin d'importer la clé, add-apt-repository s'en charge.
- Vérifier les variables d'env
env | grep -i proxy
- Installer le repository (attetion "sudo -E")
sudo -E add-apt-repository ppa:atareao/atareao