Add script for exporting public keys
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
45e78f4a0c
commit
368e991fe6
2 changed files with 11 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -14,3 +14,6 @@ fedora-deps:
|
|||
|
||||
gpg:
|
||||
bash scripts/generate_gpg.sh
|
||||
|
||||
keys:
|
||||
bash scripts/export_keys.sh
|
8
scripts/export_keys.sh
Normal file
8
scripts/export_keys.sh
Normal 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
|
Loading…
Reference in a new issue