Add script for exporting public keys

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2020-10-11 20:43:26 +02:00
parent 45e78f4a0c
commit 368e991fe6
No known key found for this signature in database
GPG key ID: 8535F3BCF69B3D69
2 changed files with 11 additions and 0 deletions

View file

@ -14,3 +14,6 @@ fedora-deps:
gpg: gpg:
bash scripts/generate_gpg.sh bash scripts/generate_gpg.sh
keys:
bash scripts/export_keys.sh

8
scripts/export_keys.sh Normal file
View file

@ -0,0 +1,8 @@
#~/bin/bash
echo ">>> Exporting SSH key <<<"
cat ~/.ssh/id_ed25519.pub
echo ">>> Exporting public GPG key <<<"
ID=$(gpg --list-secret-keys --keyid-format LONG | perl -n -e'/^sec.*\/(\w*)\s+/ && print $1')
gpg --armor --export $ID