diff --git a/Makefile b/Makefile index 56065ca..f0d141e 100644 --- a/Makefile +++ b/Makefile @@ -14,3 +14,6 @@ fedora-deps: gpg: bash scripts/generate_gpg.sh + +keys: + bash scripts/export_keys.sh \ No newline at end of file diff --git a/scripts/export_keys.sh b/scripts/export_keys.sh new file mode 100644 index 0000000..e2ba84a --- /dev/null +++ b/scripts/export_keys.sh @@ -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 \ No newline at end of file