WKD-Key-Skript and README
This commit is contained in:
parent
37ce4d5201
commit
d6d08780f3
13
README.md
Normal file
13
README.md
Normal 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
19
genwkdkey
Executable 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
|
Loading…
x
Reference in New Issue
Block a user