dayne.broderson.org

My current GPG keys are available at dayne.broderson.org/GPG/2018


GPG quick start

generate a new key:

github article on generating a gpg key

gpg --full-generate-key

get key id and public key file

gpg --list-secret-keys --keyid-format LONG

GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format LONG | grep sec \
         | sed 's/\// /g' | awk '{print $3}')
echo GPG_KEY_ID=$GPG_KEY_ID
gpg --armor --export $GPG_KEY_ID > $GPG_KEY_ID.gpg.pub
echo "exported GPG_KEY_ID as GPG public key file: $GPG_KEY_ID.gpg.pub"

incorperate the key into life

configure git to use it as signing key

git config --global user.signingkey $GPG_KEY_ID

Then add the public key ($GPG_KEY_ID.gpg.pub) to your GitHub account settings. More details at GitHub’s help page

configure pass to use your gpg key

if you’ve not setup pass here is quick start:

sudo apt install pass

Initialize pass with your GPG key:

pass init $GPG_KEY_ID

setup docker to use it

More detail in https://github.com/docker/docker-credential-helpers/issues/102

curses gpg-agent

Making gpg-agent work well in command line only mode: su.com/520980

echo "pinentry-program $(which pinentry-curses)" >>  $HOME/.gnupg/gpg-agent.conf
gpg-connect-agent reloadagent /bye
apt install pass
mkdir ~/.password-store
pass
pass git init dayne-store
pass