PGP
以前は PGP を使っていたが、今は ssh の鍵で git commit に sign できるようになった。
1password に秘密鍵を持たせ、それを使って署名している。 ssh-agent で署名できるので簡単。
https://github.com/pstadler/keybase-gpg-github
code: sh
$ gpg --list-secret-keys --keyid-format LONG
# /Users/pstadler/.gnupg/secring.gpg
# ----------------------------------
# sec 4096R/E870EE00 2016-04-06 expires: 2032-04-02
# uid Patrick Stadler <patrick.stadler@gmail.com>
# ssb 4096R/F9E3E72E 2016-04-06
$ git config --global user.signingkey E870EE00
$ git config --global commit.gpgsign true
# We can then use export with the -q or query flag to match on our key (the first 16 characters should do..)
$ keybase pgp export -q CB86A866E870EE00
$ keybase pgp export -q CB86A866E870EE00 | gpg --import
$ keybase pgp export -q CB86A866E870EE00 --secret | gpg --allow-secret-key-import --import