diff --git a/README.md b/README.md new file mode 100644 index 0000000..8781962 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# Web Key Directory (GPG/PGP-Keys zur Suche ablegen) + +Um, neben [keys.openpgp.org](https://keys.openpgp.org/), den eigenen Chaospott-GPG-Key über das WKD-Protokoll verfügbar zu machen, gehe wie folgt vor: + + +1. Clone das Repo. + +2. Gehe in den Repo-Ordner. + +3. Führe das Skript `genwkdkey`. + +4. Füge es zum git hinzu, commite und pushe. + diff --git a/genwkdkey b/genwkdkey new file mode 100755 index 0000000..83dfcbd --- /dev/null +++ b/genwkdkey @@ -0,0 +1,19 @@ +#!/bin/bash + +read -p 'Type in your chaospott mail address: ' MAILADDRESS + +# Dieses danach im o.g. Ordner ausführen. + +WKDHASH=$(gpg --with-wkd-hash --fingerprint "$MAILADDRESS" | egrep "[ ]{14}[0-9a-z]{32}@chaospott\.de" | sed 's/ //g;s/@chaospott\.de//') + + +if [ -n "$WKDHASH" ]; then + gpg --no-armor --export "$MAILADDRESS" > "$WKDHASH" + git add "$WKDHASH" + echo "OK. Now put your nickname in the commit message." + read -p 'Press enter.' + git commit + git push +else + echo "Mail address is not in your keyring." +fi