Merci de vos reponses
Euh pour exporter
gpg --export <id_clef>
Pour encoder ca en ASCII (ex pour mail ou forum)
gpg --export --armor <id_clef>
Pour lister les clefs
gpg --list-keys
Ex:
[code]root@debian:/tmp# gpg --list-keys
/root/.gnupg/pubring.gpg
pub 1024D/1F41B907 1999-10-03
uid Christian Marillat marillat@debian.org
uid Christian Marillat marillat@free.fr
sub 1536g/C28DCC42 1999-10-03
pub 1024D/6823D007 2006-04-08 [expire: 2007-02-01]
uid Debian Unofficial Archive Automatic Signing Key (2006) ftpmaster@debian-unofficial.org
sub 2048g/47CD638C 2006-04-08 [expire: 2007-02-01]
pub 1024D/8AC2C0A6 2005-03-06
uid os-cillation Debian Package Repository (Xfld Package Maintainer) debian-packages@os-cillation.com
uid os-cillation Debian Package Repository (Xfld Package Maintainer) debian-packages@os-cillation.de
sub 2048g/4729B375 2005-03-06
root@debian:/tmp# gpg --export --armor 6823D007
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.5 (GNU/Linux)
mQGiBEQ30kERBACcoAkg1vDagDpQDIkm3Tz+BiuFBss5u1Ux9a5EUoyasffNWZC+
R4axSG1IRsGNBAGj4pDJKhUHH1IxXvHuLUi91ywitNrtWuuAj4nvQB5ZK68M6AY9
aNHrQiwiQBoq7feItOqh+FG2pFIliniDqDHEkKO+OZqqEl84rzA/8emmZwCgrOQ7
nu/gjx8hkbQexVN17FaNPIsD/0yRVVMNdCLcRzU8dYc25bMZlnYG6KW38BiguPqI
OMHM7cAYLJl7bN0ZPNVJf47C41S50gapIlsPb8N15rS1z2jb93kDW9KLcCnDPngZ
CGRRZSRidGR0hnr//1J/azsYMXs7bulKOF/bOQ3mpxxgNpNt8bYJVqzWgbbyMOLI
Fq11BACZ4/NLnn6beZ5WeuiOtgmUUc0mah+Qy+t2uPDNlD/k6s3yOE/EQuWDrsYn
wqSig5SSSV0NtjjuS4gctQ3q29tFPl6caGbCTl8WDaUMcwyQqv8xah+HiYGZuyBl
1LTM8bo3FU9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z5mQBlZF5LH4Fin
f/qKi15gO7GvDkgvIwvkb5Xo94FEkccRiZe2FYw4UU3IKByQVbHI3P6LEWWpmC79
VPK1P2BVNTwvjir5kBzE6MVk2LRow2psHR+Bp1nKo6UQbHtdOyrviE8EGBECAA8F
AkQ30mUCGwwFCQGKMIAACgkQ1WQryGgj0AcMigCeIrzCY4q2SsWVbbkKnMoWxNo/
WYYAnixAMGO6EWjA3lZDCNlbabu+Dz4l
=yDn2
-----END PGP PUBLIC KEY BLOCK-----[/code]
Par contre si je refais un apt-get update il me sort plus l’erreur et ca me permet pas de verifier.
Le truc c’est qu’on est pas obligé d’utiliser gpg pour utiliser apt-key je crois.
[code]root@debian:/tmp# apt-key add ziki.asc
OK
root@debian:/tmp# apt-key list
/etc/apt/trusted.gpg
pub 1024D/2D230C5F 2006-01-03 [expire: 2007-02-07]
uid Debian Archive Automatic Signing Key (2006) ftpmaster@debian.org
pub 1024D/63D6397A 2006-02-08
uid Root (NotToBeUsed) root@127.0.0.1
sub 1024g/0A67536F 2006-02-08
pub 1024D/1F41B907 1999-10-03
uid Christian Marillat marillat@debian.org
uid Christian Marillat marillat@free.fr
sub 1536g/C28DCC42 1999-10-03
pub 1024D/6823D007 2006-04-08 [expire: 2007-02-01]
uid Debian Unofficial Archive Automatic Signing Key (2006) ftpmaster@debian-unofficial.org
sub 2048g/47CD638C 2006-04-08 [expire: 2007-02-01]
pub 1024D/8AC2C0A6 2005-03-06
uid os-cillation Debian Package Repository (Xfld Package Maintainer) debian-packages@os-cillation.com
uid os-cillation Debian Package Repository (Xfld Package Maintainer) debian-packages@os-cillation.de
sub 2048g/4729B375 2005-03-06
[/code]
en gros, ca a rien changé