WKD-Key-Skript and README

This commit is contained in:
Bandie 2022-06-15 22:34:02 +02:00
parent 37ce4d5201
commit d6d08780f3
Signed by: Bandie
GPG Key ID: 7FA4FD7D1D7997C2
2 changed files with 32 additions and 0 deletions

13
README.md Normal file
View File

@ -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.

19
genwkdkey Executable file
View File

@ -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