From d6d08780f38a63f463de226b274c8e5b974cfb2b Mon Sep 17 00:00:00 2001 From: Bandie Date: Wed, 15 Jun 2022 22:34:02 +0200 Subject: [PATCH] WKD-Key-Skript and README --- README.md | 13 +++++++++++++ genwkdkey | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 README.md create mode 100755 genwkdkey 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