2020-10-11 23:21:19 +02:00
|
|
|
#!/bin/bash
|
2020-10-11 20:43:26 +02:00
|
|
|
|
|
|
|
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')
|
2021-01-25 12:19:56 +01:00
|
|
|
gpg --armor --export $ID
|