dotfiles/scripts/export_keys.sh
Matej Focko cc174d843e
Add pre-commit
Signed-off-by: Matej Focko <mfocko@redhat.com>
2021-01-25 12:30:25 +01:00

8 lines
232 B
Bash

#!/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