Compare commits
16 Commits
37ce4d5201
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 2f02f5db5a | |||
|
f369c5101a
|
|||
|
0fa11eeef6
|
|||
|
d19cd58d62
|
|||
|
98fd541df2
|
|||
|
c359875b1b
|
|||
|
72bdd27348
|
|||
|
5df3438fe7
|
|||
| c108ab95c6 | |||
|
af851c45b5
|
|||
|
937496d79f
|
|||
|
9e67d20176
|
|||
| 00833d62ca | |||
| 3b35db81de | |||
|
31a4fb3d8a
|
|||
|
d6d08780f3
|
Binary file not shown.
Binary file not shown.
@@ -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` aus. Es exportiert deinen öffentlichen Schlüssel und legt ihn nach einem WKD-Hash-Muster ab.
|
||||
|
||||
4. Das Skript committet und pusht ebenfalls.
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Set MAILADDRESS variable
|
||||
read -p 'Type in your chaospott mail address: ' MAILADDRESS
|
||||
|
||||
# Get WKDHASH
|
||||
WKDHASHES=$(gpg --with-wkd-hash --fingerprint "$MAILADDRESS" | egrep "[ ]+[0-9a-z]{32}@chaospott\.de" | sed 's/ //g;s/@chaospott\.de//')
|
||||
|
||||
if [ -n "$WKDHASHES" ]; then
|
||||
for wkdhash in $WKDHASHES; do
|
||||
# Export key into WKDHASH
|
||||
gpg --no-armor --export "$MAILADDRESS" > "$wkdhash"
|
||||
git add "$wkdhash"
|
||||
done
|
||||
|
||||
# git commit and push
|
||||
read -p 'Enter your nickname: ' NICKNAME
|
||||
git commit -m "$NICKNAME"
|
||||
COMMITEXIT=$?
|
||||
git push
|
||||
if [ $? -ne 0 ]; then
|
||||
if [ $COMMITEXIT -eq 0 ]; then
|
||||
git reset HEAD~1
|
||||
fi
|
||||
|
||||
echo "git push failed. Try again."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
else
|
||||
echo "Mail address is not in your keyring."
|
||||
exit 1
|
||||
fi
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user