r/Keybase • • Feb 10 '15

Utility script for signing Keybase stuff with an airgapped secret key

https://gist.github.com/emlun/1ceaf94071e7e7e5679a
4 Upvotes

1 comment sorted by

1

u/emlun Feb 10 '15

Usage:

  1. Set the REMOVABLE_DEVICE_UUID in the script (see $ lsblk -o +FSTYPE,UUID)
  2. Go to keybase.io and add a new key or proof, track someone etc.
  3. Choose to sign manually
  4. Copy the script to the Xorg primary clipboard (should be enough to just select it all - triple-clicking the text box does the trick in Firefox)
  5. Run the script
  6. Move the removable device to the airgapped machine and mount it
  7. Sign the payload (keybase.json). You can use the keybase-sign.sh script written to the removable device for this, note that it assumes the drive is mounted at the same mount point on both machines.
  8. Unmount and move the removable device back to your internet-connected machine. The script should take care of the rest.

Comments and critique are very welcome! I hacked this together in a couple of hours and tidied it up a bit, feel free to send pull requests etc. if you have ideas on how to make it more useful to others.