Difference between revisions of "GnuPG"

From YobiWiki
Jump to navigation Jump to search
m
Line 1: Line 1:
  +
''French part was converted with [[MediaWiki#HTML-WikiConverter|HTML::WikiConverter::MediaWiki]] from my old phpwiki site''
  +
==Intro==
  +
Un très bon point de départ: http://www.gnupg.org/gph/fr/manual.html
   
  +
Une introduction a GnuPG(vulgaristation): http://www.vilya.org/gpg/
  +
  +
== Mes clés ==
  +
  +
On peut les trouver un peu partout.
  +
  +
gpg --keyserver wwwkeys.pgp.net --recv-key 0x7A135F579AD7E3DB
  +
  +
== Serveurs publics ==
  +
  +
* http://wwwkeys.pgp.net
  +
* [http://sks-keyservers.net/status/ A list...]
  +
* http://pgp.mit.edu (very slow)
  +
  +
== Key Signing Coordination ==
  +
  +
http://www.biglumber.com/
  +
  +
== Distance entre clés ==
  +
  +
Par exemple<br />[http://keyserver.kjsl.com/~jharris/gpgwww.cgi?from=135EA668&to=9AD7E3DB http://keyserver.kjsl.com/~jharris/gpgwww.cgi?from=135EA668&amp;to=9AD7E3DB]<br />[http://keyserver.kjsl.com/~jharris/gpgwww.cgi?from=449FA3AB&to=9AD7E3DB http://keyserver.kjsl.com/~jharris/gpgwww.cgi?from=449FA3AB&amp;to=9AD7E3DB]<br />Remplacer les IDs des clés pour essayer d'autres chemins.
  +
  +
Update: les URLs précédentes ne fonctionnent apparemment plus, vous pouvez essayer avec celles-ci:<br>
  +
http://pgp.cs.uu.nl/mk_path.cgi?FROM=135EA668&TO=9AD7E3DB&PATHS=trust+paths<br>
  +
http://pgp.cs.uu.nl/mk_path.cgi?FROM=449FA3AB=9AD7E3DB&PATHS=trust+paths
  +
  +
[http://www.cs.uu.nl/people/henkp/henkp/pgp/pathfinder/mk_path.cgi?STAT=9AD7E3DB&STATS=statistics http://www.cs.uu.nl/people/henkp/henkp/pgp/pathfinder/mk_path.cgi?STAT=9AD7E3DB&amp;STATS=statistics]
  +
  +
=== Strong Set ===
  +
  +
Une analyse mensuelle est disponible ici: http://dtype.org/keyanalyze/<br />[http://www.dtype.org/keyanalyze/output/200208/9A/9AD7E3DB J'y suis rentré en août 2002] avec une distance moyenne de 6.9916 (merci adulau ;-) <br />Des analyses plus récentes sont disponibles ici: http://keyserver.kjsl.com/~jharris/ka
  +
  +
<div class="plugin tightenable top">
  +
  +
{| border="1" cellspacing="1" cellpadding="1"
  +
| align="left" | strong&gt;Date&lt;/strong&gt;
  +
| align="left" | strong&gt;Mean dist&lt;/strong&gt;
  +
| align="left" | strong&gt;World class&lt;/strong&gt;
  +
| align="left" | strong&gt;From Set to ID&lt;/strong&gt;
  +
| align="left" | strong&gt;From ID to Set&lt;/strong&gt;
  +
| align="left" | strong&gt;Max hops&lt;/strong&gt;
  +
| align="left" | strong&gt;Strong set&lt;/strong&gt;
  +
| align="left" | strong&gt;Average mean&lt;/strong&gt;
  +
|-
  +
| align="left" |
  +
[http://www.dtype.org/keyanalyze/output/200208/ 08-2002]
  +
| align="left" | 6.9916
  +
| align="left" | &gt;1000
  +
| align="left" | -
  +
| align="left" | -
  +
| align="left" | 15
  +
| align="left" | 14159
  +
| align="left" | 6.5105
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2002-08-11/ 11-08-2002]
  +
| align="left" | 5.7041
  +
| align="left" | &gt;1000
  +
| align="left" | -
  +
| align="left" | -
  +
| align="left" | 14
  +
| align="left" | 14353
  +
| align="left" | 6.5222
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2002-08-25/ 25-08-2002]
  +
| align="left" | 5.6948
  +
| align="left" | &gt;1000
  +
| align="left" | -
  +
| align="left" | -
  +
| align="left" | 14
  +
| align="left" | 14586
  +
| align="left" | 6.5327
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2002-09-08/ 08-09-2002]
  +
| align="left" | 5.6979
  +
| align="left" | &gt;1000
  +
| align="left" | -
  +
| align="left" | -
  +
| align="left" | 14
  +
| align="left" | 14797
  +
| align="left" | 6.5561
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2002-09-22/ 22-09-2002]
  +
| align="left" | 5.6648
  +
| align="left" | &gt;1000
  +
| align="left" | -
  +
| align="left" | -
  +
| align="left" | 14
  +
| align="left" | 14973
  +
| align="left" | 6.5084
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2002-10-06/ 06-10-2002]
  +
| align="left" | 5.6414
  +
| align="left" | &gt;1000
  +
| align="left" | -
  +
| align="left" | -
  +
| align="left" | 14
  +
| align="left" | 15169
  +
| align="left" | 6.5101
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2002-10-20/ 20-10-2002]
  +
| align="left" | 5.6296
  +
| align="left" | &gt;1000
  +
| align="left" | 9
  +
| align="left" | 12
  +
| align="left" | 14
  +
| align="left" | 15370
  +
| align="left" | 6.5037
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2002-11-03/ 03-11-2002]
  +
| align="left" | 5.5183
  +
| align="left" | &gt;1000
  +
| align="left" | 19
  +
| align="left" | 27
  +
| align="left" | 13
  +
| align="left" | 15575
  +
| align="left" | 6.5045
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2002-11-17/ 17-11-2002]
  +
| align="left" | 5.4787
  +
| align="left" | &gt;1000
  +
| align="left" | 24
  +
| align="left" | 27
  +
| align="left" | 13
  +
| align="left" | 15787
  +
| align="left" | 6.5017
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2002-12-01/ 01-12-2002]
  +
| align="left" | 5.4420
  +
| align="left" | &gt;1000
  +
| align="left" | 24
  +
| align="left" | 27
  +
| align="left" | 13
  +
| align="left" | 15949
  +
| align="left" | 6.4797
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2002-12-15/ 15-12-2002]
  +
| align="left" | 5.4373
  +
| align="left" | &gt;1000
  +
| align="left" | 24
  +
| align="left" | 27
  +
| align="left" | 13
  +
| align="left" | 16174
  +
| align="left" | 6.4806
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2002-12-29/ 29-12-2002]
  +
| align="left" | 5.3922
  +
| align="left" | &gt;1000
  +
| align="left" | 24
  +
| align="left" | 27
  +
| align="left" | 13
  +
| align="left" | 16305
  +
| align="left" | 6.4931
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-01-12/ 12-01-2003]
  +
| align="left" | 5.3865
  +
| align="left" | &gt;1000
  +
| align="left" | 24
  +
| align="left" | 27
  +
| align="left" | 13
  +
| align="left" | 16474
  +
| align="left" | 6.4804
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-01-26/ 26-01-2003]
  +
| align="left" | 5.2183
  +
| align="left" | &gt;1000
  +
| align="left" | 24
  +
| align="left" | 27
  +
| align="left" | 13
  +
| align="left" | 16673
  +
| align="left" | 6.4706
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-02-09/ 09-02-2003]
  +
| align="left" | 5.2173
  +
| align="left" | &gt;1000
  +
| align="left" | 24
  +
| align="left" | 27
  +
| align="left" | 13
  +
| align="left" | 16951
  +
| align="left" | 6.4849
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-02-23/ 23-02-2003]
  +
| align="left" | 4.7102
  +
| align="left" | 496
  +
| align="left" | 43
  +
| align="left" | 63
  +
| align="left" | 13
  +
| align="left" | 17338
  +
| align="left" | 6.4773
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-03-09/ 09-03-2003]
  +
| align="left" | 4.7024
  +
| align="left" | 507
  +
| align="left" | 45
  +
| align="left" | 63
  +
| align="left" | 13
  +
| align="left" | 17620
  +
| align="left" | 6.4711
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-03-23/ 23-03-2003]
  +
| align="left" | 4.6933
  +
| align="left" | 500
  +
| align="left" | 46
  +
| align="left" | 63
  +
| align="left" | 13
  +
| align="left" | 17861
  +
| align="left" | 6.4675
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-04-06/ 06-04-2003]
  +
| align="left" | 4.6794
  +
| align="left" | 481
  +
| align="left" | 47
  +
| align="left" | 63
  +
| align="left" | 13
  +
| align="left" | 18197
  +
| align="left" | 6.6484
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-04-20/ 20-04-2003]
  +
| align="left" | 4.6373
  +
| align="left" | 367
  +
| align="left" | 51
  +
| align="left" | 67
  +
| align="left" | 13
  +
| align="left" | 19075
  +
| align="left" | 6.6624
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-05-04/ 04-05-2003]
  +
| align="left" | 4.6281
  +
| align="left" | 358
  +
| align="left" | 51
  +
| align="left" | 67
  +
| align="left" | 13
  +
| align="left" | 19372
  +
| align="left" | 6.6584
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-05-18/ 18-05-2003]
  +
| align="left" | 4.6027
  +
| align="left" | 330
  +
| align="left" | 51
  +
| align="left" | 67
  +
| align="left" | 13
  +
| align="left" | 19641
  +
| align="left" | 6.6410
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-06-01/ 01-06-2003]
  +
| align="left" | 4.6002
  +
| align="left" | 331
  +
| align="left" | 51
  +
| align="left" | 67
  +
| align="left" | 13
  +
| align="left" | 19833
  +
| align="left" | 6.6261
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-06-15/ 15-06-2003]
  +
| align="left" | 4.5854
  +
| align="left" | 335
  +
| align="left" | 52
  +
| align="left" | 68
  +
| align="left" | 13
  +
| align="left" | 20095
  +
| align="left" | 6.6038
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-06-29/ 29-06-2003]
  +
| align="left" | 4.5700
  +
| align="left" | 330
  +
| align="left" | 52
  +
| align="left" | 68
  +
| align="left" | 13
  +
| align="left" | 20305
  +
| align="left" | 6.5954
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-07-13/ 13-07-2003]
  +
| align="left" | 4.5531
  +
| align="left" | 327
  +
| align="left" | 52
  +
| align="left" | 68
  +
| align="left" | 13
  +
| align="left" | 20602
  +
| align="left" | 6.5762
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-07-27/ 27-07-2003]
  +
| align="left" | 4.5189
  +
| align="left" | 419
  +
| align="left" | 52
  +
| align="left" | 68
  +
| align="left" | 13
  +
| align="left" | 20814
  +
| align="left" | 6.5251
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-08-10/ 10-08-2003]
  +
| align="left" | 4.4803
  +
| align="left" | 440
  +
| align="left" | 52
  +
| align="left" | 68
  +
| align="left" | 13
  +
| align="left" | 21025
  +
| align="left" | 6.4861
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-08-24/ 24-08-2003]
  +
| align="left" | 4.4676
  +
| align="left" | 461
  +
| align="left" | 58
  +
| align="left" | 75
  +
| align="left" | 13
  +
| align="left" | 21333
  +
| align="left" | 6.4784
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-09-07/ 07-09-2003]
  +
| align="left" | 4.4565
  +
| align="left" | 462
  +
| align="left" | 59
  +
| align="left" | 76
  +
| align="left" | 13
  +
| align="left" | 21487
  +
| align="left" | 6.4721
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003-10-05/ 05-10-2003]
  +
| align="left" | 4.4456
  +
| align="left" | 482
  +
| align="left" | 59
  +
| align="left" | 76
  +
| align="left" | 13
  +
| align="left" | 21843
  +
| align="left" | 6.4762
  +
|-
  +
| align="left" |
  +
[http://skylane.kjsl.com/~jharris/ka/2003--/ --2003]
  +
| align="left" | 4.
  +
| align="left" | -
  +
| align="left" | 58
  +
| align="left" | 75
  +
| align="left" | 13
  +
| align="left" | -
  +
| align="left" | 6.
  +
|}
  +
  +
</div>
  +
  +
#!/bin/bash
  +
# gpg-setstats retrieves stats about the strongset &amp; your key
  +
REF="http://skylane.kjsl.com/~jharris/ka"
  +
MYKEY=${1:-"9AD7E3DB"}
  +
  +
for URL in $(lynx -dump $REF|grep "$REF/200"|cut -c 7-53); do
  +
select q in "Stats for the ${URL#$REF}" "Skip" "Quit";do
  +
if [ "$q" == "Stats for the ${URL#$REF}" ]; then
  +
echo =======================================
  +
echo Retrieve infos for ${URL#$REF}:
  +
wget -O - -q ${URL}other.txt
  +
wget -O - -q ${URL}status.txt|grep "strongly connected"
  +
wget -O - -q $URL${MYKEY:0:2}/$MYKEY|grep "^KeyID\|^Total\|^Mean\|^Farthest"
  +
echo -n "World Class:"
  +
lynx -dump ${URL}top1000table.html|grep $MYKEY|grep -v kjsl
  +
echo =======================================
  +
break; fi
  +
if [ "$q" == "Skip" ]; then
  +
break; fi
  +
if [ "$q" == "Quit" ]; then
  +
exit; fi
  +
echo test $URL
  +
done
  +
done
  +
  +
== Tips ==
  +
  +
=== Pour fetcher ttes les UIDs qui ont signé une clé ===
  +
  +
for key in $(gpg --list-sigs $1|grep ^sig|cut -c 13-20|sort|uniq);
  +
do
  +
gpg --recv-key $key
  +
done
  +
  +
=== quintuple-agent ===
  +
  +
  +
eval `q-agent &amp;`
  +
q-client put 9AD7E3DB -t 3600
  +
or directly use '''agpg''' instead of '''gpg'''
  +
  +
=== Support de OpenPGP dans KMail: ===
  +
  +
* http://kmail.kde.org/kmail-pgpmime-howto.html
  +
  +
  +
wget ftp://ftp.gnupg.org/gcrypt/alpha/aegypten/debian/libksba0_0.4.3-1_i386.deb
  +
dpkg -i libksba0_0.4.3-1_i386.deb
  +
wget ftp://ftp.gnupg.org/gcrypt/alpha/aegypten/debian/pinentry-gtk_0.6.3-1_i386.deb
  +
dpkg -i pinentry-gtk_0.6.3-1_i386.deb
  +
wget ftp://ftp.gnupg.org/gcrypt/alpha/aegypten/debian/gpgsm_0.3.9-1_i386.deb
  +
dpkg -i gpgsm_0.3.9-1_i386.deb
  +
gpg --rebuild-keydb-caches
  +
  +
Editer ~/.gnupg/gpg.conf -&gt; use-agent <br />Dans KMail, Settings-&gt;Configure KMail-&gt;Security-&gt;Crypto Plugins et ajouter gpgme-openpgp.so plugin. <br />Laisser "update URL" vide et mettre un nom comme par ex. "OpenPGP", "location": /usr/lib/cryptplug/gpgme-opengpg.so
  +
  +
/usr/local/bin/gpg-kmail:
  +
  +
  +
#!/bin/bash
  +
launch_me(){
  +
eval "$(gpg-agent --pinentry-program /usr/bin/pinentry-gtk --no-grab --default-cache-ttl 1800 )"
  +
kmail $* --nofork
  +
echo $GPG_AGENT_INFO|cut -d: -f2|xargs kill
  +
}
  +
launch_me $* &amp;
  +
exit 0
   
 
==Notes on signing-parties==
 
==Notes on signing-parties==
  +
Old notes:
  +
  +
Pas mal d'infos sur http://skylane.kjsl.com/~jharris/keysigning.html<br />Ainsi que des exemples d'annonce par Adulau sur http://www.ael.be/action/gnupg/ et http://www.ael.be/action/gnupg/fosdem/<br />Mais un problème courant est la coordination physique des gens pour que chacun rencontre chacun.
  +
  +
Soient N personnes prêtes à signer <br />Ces personnes se numérotent de 0 à N-1
  +
  +
  +
for (i=0;i&lt;N;i++)
  +
{ x signe (N-x+i)%N }
  +
  +
Puisque l'on fait ça N fois et que chacun ne doit signer que N-1 personnes, chacun sera passif lors d'UNE des itérations, simplement celle pour laquelle l'algo lui dit: x signe x <br />Bref tout le monde est occupé (N-1/N) % du temps :-)
  +
  +
Physiquement on peut se disposer en double file comme ceci: (ceux mis sur les bords ne signent pas)
  +
  +
  +
| i=0 | i=1 | i=2 | i=3 | i=4 | i=5
  +
----+---------+---------+---------+---------+---------+---------
  +
| 1 2 | 1 2 | 2 3 | 2 3 | 3 4 |
  +
N=5 | 0 | | | | | 3 | 1 | | | | | 4 | 2 | | |
  +
| 4 3 | 0 4 | 0 4 | 1 0 | 1 0 |
  +
----+---------+---------+---------+---------+---------+---------
  +
| 1 2 | 1 2 3 | 2 3 | 2 3 4 | 3 4 | 3 4 5
  +
N=6 | 0 | | 3 | | | | | 1 | | 4 | | | | | 2 | | 5 | | | |
  +
| 5 4 | 0 5 4 | 0 5 | 1 0 5 | 1 0 | 2 1 0
  +
----+---------+---------+---------+---------+---------+---------
  +
  +
Avantage de l'algo: lorsqu'on prépare les feuilles avec les fingerprints, on peut aussi préparer pour chacun l'ordre dans lequel il doit signer les autres:
  +
  +
  +
#!/bin/bash
  +
# argument: nbre total de personnes
  +
N=$1
  +
for ((x=0;x&lt;N;x++)); do
  +
echo -n "$x signera dans l'ordre: "
  +
for ((i=0;i&lt;N;i++)); do
  +
echo -n "$((($N-$x+$i)%$N)) "
  +
done
  +
echo ""
  +
done
  +
  +
UPDATE: intéressant, lors du FOSDEM 2008 c'est en double-rang que l'on a effectivement progressé, avec 200 personnes sur la liste il y avait intéret à optimiser en effet ;-)
  +
  +
----
  +
 
There are some useful tools in Debian:
 
There are some useful tools in Debian:
 
apt-get install signing-party
 
apt-get install signing-party

Revision as of 21:14, 24 February 2008

French part was converted with HTML::WikiConverter::MediaWiki from my old phpwiki site

Intro

Un très bon point de départ: http://www.gnupg.org/gph/fr/manual.html

Une introduction a GnuPG(vulgaristation): http://www.vilya.org/gpg/

Mes clés

On peut les trouver un peu partout.

   gpg --keyserver wwwkeys.pgp.net --recv-key 0x7A135F579AD7E3DB

Serveurs publics

Key Signing Coordination

http://www.biglumber.com/

Distance entre clés

Par exemple
http://keyserver.kjsl.com/~jharris/gpgwww.cgi?from=135EA668&to=9AD7E3DB
http://keyserver.kjsl.com/~jharris/gpgwww.cgi?from=449FA3AB&to=9AD7E3DB
Remplacer les IDs des clés pour essayer d'autres chemins.

Update: les URLs précédentes ne fonctionnent apparemment plus, vous pouvez essayer avec celles-ci:
http://pgp.cs.uu.nl/mk_path.cgi?FROM=135EA668&TO=9AD7E3DB&PATHS=trust+paths
http://pgp.cs.uu.nl/mk_path.cgi?FROM=449FA3AB=9AD7E3DB&PATHS=trust+paths

http://www.cs.uu.nl/people/henkp/henkp/pgp/pathfinder/mk_path.cgi?STAT=9AD7E3DB&STATS=statistics

Strong Set

Une analyse mensuelle est disponible ici: http://dtype.org/keyanalyze/
J'y suis rentré en août 2002 avec une distance moyenne de 6.9916 (merci adulau ;-)
Des analyses plus récentes sont disponibles ici: http://keyserver.kjsl.com/~jharris/ka

strong>Date</strong> strong>Mean dist</strong> strong>World class</strong> strong>From Set to ID</strong> strong>From ID to Set</strong> strong>Max hops</strong> strong>Strong set</strong> strong>Average mean</strong>

08-2002

6.9916 >1000 - - 15 14159 6.5105

11-08-2002

5.7041 >1000 - - 14 14353 6.5222

25-08-2002

5.6948 >1000 - - 14 14586 6.5327

08-09-2002

5.6979 >1000 - - 14 14797 6.5561

22-09-2002

5.6648 >1000 - - 14 14973 6.5084

06-10-2002

5.6414 >1000 - - 14 15169 6.5101

20-10-2002

5.6296 >1000 9 12 14 15370 6.5037

03-11-2002

5.5183 >1000 19 27 13 15575 6.5045

17-11-2002

5.4787 >1000 24 27 13 15787 6.5017

01-12-2002

5.4420 >1000 24 27 13 15949 6.4797

15-12-2002

5.4373 >1000 24 27 13 16174 6.4806

29-12-2002

5.3922 >1000 24 27 13 16305 6.4931

12-01-2003

5.3865 >1000 24 27 13 16474 6.4804

26-01-2003

5.2183 >1000 24 27 13 16673 6.4706

09-02-2003

5.2173 >1000 24 27 13 16951 6.4849

23-02-2003

4.7102 496 43 63 13 17338 6.4773

09-03-2003

4.7024 507 45 63 13 17620 6.4711

23-03-2003

4.6933 500 46 63 13 17861 6.4675

06-04-2003

4.6794 481 47 63 13 18197 6.6484

20-04-2003

4.6373 367 51 67 13 19075 6.6624

04-05-2003

4.6281 358 51 67 13 19372 6.6584

18-05-2003

4.6027 330 51 67 13 19641 6.6410

01-06-2003

4.6002 331 51 67 13 19833 6.6261

15-06-2003

4.5854 335 52 68 13 20095 6.6038

29-06-2003

4.5700 330 52 68 13 20305 6.5954

13-07-2003

4.5531 327 52 68 13 20602 6.5762

27-07-2003

4.5189 419 52 68 13 20814 6.5251

10-08-2003

4.4803 440 52 68 13 21025 6.4861

24-08-2003

4.4676 461 58 75 13 21333 6.4784

07-09-2003

4.4565 462 59 76 13 21487 6.4721

05-10-2003

4.4456 482 59 76 13 21843 6.4762

--2003

4. - 58 75 13 - 6.
  #!/bin/bash
  # gpg-setstats retrieves stats about the strongset & your key
  REF="http://skylane.kjsl.com/~jharris/ka"
  MYKEY=${1:-"9AD7E3DB"}

  for URL in $(lynx -dump $REF|grep "$REF/200"|cut -c 7-53); do
    select q in "Stats for the ${URL#$REF}" "Skip" "Quit";do
    if [ "$q" == "Stats for the ${URL#$REF}" ]; then
      echo =======================================
      echo Retrieve infos for ${URL#$REF}:
      wget -O - -q ${URL}other.txt
      wget -O - -q ${URL}status.txt|grep "strongly connected"
      wget -O - -q $URL${MYKEY:0:2}/$MYKEY|grep "^KeyID\|^Total\|^Mean\|^Farthest"
      echo -n "World Class:"
      lynx -dump ${URL}top1000table.html|grep $MYKEY|grep -v kjsl
      echo =======================================
      break; fi
    if [ "$q" == "Skip"  ]; then
      break; fi
    if [ "$q" == "Quit" ]; then
      exit; fi
    echo test $URL
    done
  done

Tips

Pour fetcher ttes les UIDs qui ont signé une clé

  for key in $(gpg --list-sigs $1|grep ^sig|cut -c 13-20|sort|uniq);
  do
   gpg --recv-key $key
  done

quintuple-agent

  eval `q-agent &`
  q-client put 9AD7E3DB -t 3600
  or directly use agpg instead of gpg

Support de OpenPGP dans KMail:


 wget ftp://ftp.gnupg.org/gcrypt/alpha/aegypten/debian/libksba0_0.4.3-1_i386.deb
 dpkg -i libksba0_0.4.3-1_i386.deb
 wget ftp://ftp.gnupg.org/gcrypt/alpha/aegypten/debian/pinentry-gtk_0.6.3-1_i386.deb
 dpkg -i pinentry-gtk_0.6.3-1_i386.deb
 wget ftp://ftp.gnupg.org/gcrypt/alpha/aegypten/debian/gpgsm_0.3.9-1_i386.deb
 dpkg -i gpgsm_0.3.9-1_i386.deb
 gpg --rebuild-keydb-caches

Editer ~/.gnupg/gpg.conf -> use-agent
Dans KMail, Settings->Configure KMail->Security->Crypto Plugins et ajouter gpgme-openpgp.so plugin.
Laisser "update URL" vide et mettre un nom comme par ex. "OpenPGP", "location": /usr/lib/cryptplug/gpgme-opengpg.so

/usr/local/bin/gpg-kmail:


 #!/bin/bash
 launch_me(){
    eval "$(gpg-agent --pinentry-program /usr/bin/pinentry-gtk --no-grab --default-cache-ttl 1800 )"
    kmail $* --nofork
    echo $GPG_AGENT_INFO|cut -d: -f2|xargs kill
 }
 launch_me $* &
 exit 0

Notes on signing-parties

Old notes:

Pas mal d'infos sur http://skylane.kjsl.com/~jharris/keysigning.html
Ainsi que des exemples d'annonce par Adulau sur http://www.ael.be/action/gnupg/ et http://www.ael.be/action/gnupg/fosdem/
Mais un problème courant est la coordination physique des gens pour que chacun rencontre chacun.

Soient N personnes prêtes à signer
Ces personnes se numérotent de 0 à N-1


  for (i=0;i<N;i++)
  { x signe (N-x+i)%N }

Puisque l'on fait ça N fois et que chacun ne doit signer que N-1 personnes, chacun sera passif lors d'UNE des itérations, simplement celle pour laquelle l'algo lui dit: x signe x
Bref tout le monde est occupé (N-1/N) % du temps :-)

Physiquement on peut se disposer en double file comme ceci: (ceux mis sur les bords ne signent pas)


      |   i=0   |   i=1   |   i=2   |   i=3   |   i=4   |   i=5
  ----+---------+---------+---------+---------+---------+---------
      |   1 2   |   1 2   |   2 3   |   2 3   |   3 4   |
  N=5 | 0 | |   |   | | 3 | 1 | |   |   | | 4 | 2 | |   |
      |   4 3   |   0 4   |   0 4   |   1 0   |   1 0   |
  ----+---------+---------+---------+---------+---------+---------
      |   1 2   |  1 2 3  |   2 3   |  2 3 4  |   3 4   |  3 4 5
  N=6 | 0 | | 3 |  | | |  | 1 | | 4 |  | | |  | 2 | | 5 |  | | |
      |   5 4   |  0 5 4  |   0 5   |  1 0 5  |   1 0   |  2 1 0
  ----+---------+---------+---------+---------+---------+---------

Avantage de l'algo: lorsqu'on prépare les feuilles avec les fingerprints, on peut aussi préparer pour chacun l'ordre dans lequel il doit signer les autres:


  #!/bin/bash
  # argument: nbre total de personnes
  N=$1
  for ((x=0;x<N;x++)); do
     echo -n "$x signera dans l'ordre: "
     for ((i=0;i<N;i++)); do
        echo -n "$((($N-$x+$i)%$N)) "
     done
     echo ""
  done

UPDATE: intéressant, lors du FOSDEM 2008 c'est en double-rang que l'on a effectivement progressé, avec 200 personnes sur la liste il y avait intéret à optimiser en effet ;-)


There are some useful tools in Debian:

apt-get install signing-party

Here is an example based on my participation to the keysigning-party of FOSDEM 2008

  • Importing keys: the organizer provided a file with all the keys exported
tar xzvf keys.tgz
for i in keys/*; do gpg --import $i;done
  • Preparing the given list of keys: the organizer provided a list such as in the examples provided here: /usr/share/doc/signing-party/gpgsigs/examples/. To prepare that file, compute its checksums and add the pictures when possible:
gpgsigs --latex 9ad7e3db ksp-fosdem2008.txt ksp-fosdem2008
latex ksp-fosdem2008
dvips ksp-fosdem2008.dvi
ps2pdf ksp-fosdem2008.ps > ksp-fosdem2008.pdf
  • Preparing a stock of our own fingerprints, in case of...
gpg-key2ps 9ad7e3db |ps2pdf - 9ad7e3db.pdf
  • But after all how was produced the list of fingerprints from the organizer? I created a script to generate such list:
#!/bin/bash

# License: GPLv3
# Copyright Philippe Teuwen <phil a teuwen o org> 2008
if [[ $# -ne 5 ]]; then
    cat <<EOF
Usage: $0 input output datestring organizer title
Or:    $0 -     output datestring organizer title
       to read from STDIN
Example:
       echo 9AD7E3DB 54C12701 |\\
       $0 - ksp-file.txt "20080222 1100" "Philippe Teuwen <phil a teuwen o org>" "my party 08"
EOF
    exit 0
fi

input="$1"
[ "$input" == "-" ] && input="";
output="$2"
date="$3"
org="$4"
title=$(echo "$5"|tr a-z A-Z|sed 's/\(.\)/\1 /g')

exec > "$output"

# Date of event
LANG=C date --date="$date" +"%A, %B %e, %Y;  %H:%M"
# Organiser contact
printf "%80s\n\n\n" "$org"
# Title
printf "%*s\n\n" $(((72+$(echo "$title"|wc -c))/2)) "$title"
# Header
cat <<EOF
                     List of Participants  (v 1.0)


Here's what you have to do with this file:
(1) Print this file to paper.
(2) Compute this file's MD5 checksum and optionally also its SHA1 checksum.
   gpg --print-md md5  $output  (or use md5sum)
   gpg --print-md sha1 $output  (or use sha1sum)
(3) fill in the hash values on the printout.
(4) Bring the printout, a pen, and proof of identity to the keysigningparty (and be on time!).

MD5 Checksum:  __ __ __ __ __ __ __ __    __ __ __ __ __ __ __ __           [ ]



SHA1 Checksum: ____ ____ ____ ____ ____    ____ ____ ____ ____ ____         [ ]




EOF

k=0;
for i in $(cat $input); do 
    k=$(($k+1)); 
    printf "\n%03d  [ ] Fingerprint OK        [ ] ID OK\n" $k;
    gpg --fingerprint $i|grep -v "^sub";
done

After the signing party

  • I clean the list ksp-fosdem2008.txt to keep only those I met.
  • I extract the fingerprints
cat ksp-fosdem2008-ok.txt |grep fingerprint|sed 's/^.*= //;s/ //g'> ksp-fosdem2008-finger.txt
  • I configure caff, the first time it creates a template in ~/.caffrc which was nearly ok, I let only my usual public key, told to encrypt also for that key, activated the default email template, chose agpg as signing gpg program and finally chose a public keyserver:
$CONFIG{'local-user'} = [ qw{7A135F579AD7E3DB} ];
$CONFIG{'also-encrypt-to'} = [ qw{7A135F579AD7E3DB} ];
$CONFIG{'gpg-sign'} = '/usr/bin/agpg';
$CONFIG{'keyserver'} = 'wwwkeys.pgp.net';
  • I could not get caff working until I finally copied ~/.gnupg/pubring.gpg and ~/.gnupg/trustdb.gpg to ~/.caff/gnupghome/ then everything worked including import of new keys from the keyserver.
  • Signing only:
caff --no-download --no-export-old --no-mail $(cat ksp-fosdem2008-finger.txt)
yes / save (check twice the uids as you could have forgotten to remove it in ksp-fosdem2008-ok.txt)
  • Sending emails:
caff --no-download --no-sign --no-export-old $(cat ksp-fosdem2008-finger.txt)
  • I got some undeliverable emails, some obviously being jabber ids, so I recovered the email content from ~/.caff/keys/2008-02-24 and sent it over jabber.
  • Short way for a professional signing-party using an internal keyserver:
#!/bin/bash

for i in $(cat <<EOF
98851B2B8B5B43104A25ECA1A6F4CF46E9A11073
56CFE246BB33A42F1142646EE9E8031D67147274
...
EOF) ; do
    gpg --recv-key $i;
    agpg -u nxp --sign-key $i;
    gpg --send-key $i;
done
  • In case you mistype your passphrase with quintuple-agent (agpg), you've to delete the stored passphrase before trying again:
q-client list
q-client delete 54C12701
  • Check who has signed your key:
gpglist 9AD7E3DB