Skip to content

Instantly share code, notes, and snippets.

@0x4445565A
Last active November 12, 2019 01:14
Show Gist options
  • Save 0x4445565A/e95ba12e2b8a4317fa63965de2304320 to your computer and use it in GitHub Desktop.
Save 0x4445565A/e95ba12e2b8a4317fa63965de2304320 to your computer and use it in GitHub Desktop.
A quick lazy snippet to send your public key to some SKS Key servers.
echo -n "What is your Keybase Username? [ENTER] " && read KEYBASE_USER && KEYBASE_KEY=`curl -s https://keybase.io/${KEYBASE_USER}/key.asc` \
&& curl -X POST --data-urlencode "keytext=${KEYBASE_KEY}" https://pgp.mit.edu/pks/add | grep -io "Key block added to key server database" \
&& curl -X POST --data-urlencode "keytext=${KEYBASE_KEY}" https://pgp.key-server.io/pks/add | grep -io "Key block added to key server database"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment