Documentation
This commit is contained in:
parent
00833d62ca
commit
9e67d20176
@ -9,5 +9,5 @@ Um, neben [keys.openpgp.org](https://keys.openpgp.org/), den eigenen Chaospott-G
|
|||||||
|
|
||||||
3. Führe das Skript `genwkdkey` aus. Es exportiert deinen öffentlichen Schlüssel und legt ihn nach einem WKD-Hash-Muster ab.
|
3. Führe das Skript `genwkdkey` aus. Es exportiert deinen öffentlichen Schlüssel und legt ihn nach einem WKD-Hash-Muster ab.
|
||||||
|
|
||||||
4. Füge es zum git hinzu, commite und pushe.
|
4. Das Skript committet und pusht ebenfalls.
|
||||||
|
|
||||||
|
@ -1,15 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Set MAILADDRESS variable
|
||||||
read -p 'Type in your chaospott mail address: ' MAILADDRESS
|
read -p 'Type in your chaospott mail address: ' MAILADDRESS
|
||||||
|
|
||||||
# Dieses danach im o.g. Ordner ausführen.
|
# Get WKDHASH
|
||||||
|
|
||||||
WKDHASH=$(gpg --with-wkd-hash --fingerprint "$MAILADDRESS" | egrep "[ ]{14}[0-9a-z]{32}@chaospott\.de" | sed 's/ //g;s/@chaospott\.de//')
|
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
|
if [ -n "$WKDHASH" ]; then
|
||||||
|
# Export key into WKDHASH
|
||||||
gpg --no-armor --export "$MAILADDRESS" > "$WKDHASH"
|
gpg --no-armor --export "$MAILADDRESS" > "$WKDHASH"
|
||||||
git add "$WKDHASH"
|
git add "$WKDHASH"
|
||||||
|
|
||||||
|
# git commit and push
|
||||||
echo "OK. Now put your nickname in the commit message."
|
echo "OK. Now put your nickname in the commit message."
|
||||||
read -p 'Press enter.'
|
read -p 'Press enter.'
|
||||||
git commit
|
git commit
|
||||||
|
Loading…
Reference in New Issue
Block a user