Skip to content

Instantly share code, notes, and snippets.

@iknite
Last active April 3, 2020 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iknite/7a94029f702f385915673d1b796f0271 to your computer and use it in GitHub Desktop.
Save iknite/7a94029f702f385915673d1b796f0271 to your computer and use it in GitHub Desktop.
keybase gpg and git-crypt

gen key

gpg --full

gpg -> keybase

gpg --list-keys

gpg --armor --export ${fingerprint} | keybase pgp import
gpg --armor --export-secret-keys ${fingerprint} | keybase pgp import --push-secret

keybase -> gpg

keybase pgp list

keybase pgp export -q ${keyId} | gpg --import
keybase pgp export -q ${keyId} -s | gpg --allow-secret-key-import --import

Retrieve gpg from github and add to gpg

curl -L github.com/${github_username}.gpg -O

gpg --import ${github_username}.gpg
gpg --lsing-key ${fingerprint}

https://robertknight.me.uk/posts/git-crypt-intro/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment