PGP
以前は PGP を使っていたが、今は ssh の鍵で git commit に sign できるようになった。
1password に秘密鍵を持たせ、それを使って署名している。 ssh-agent で署名できるので簡単。
code: sh
$ gpg --list-secret-keys --keyid-format LONG
# /Users/pstadler/.gnupg/secring.gpg
# ----------------------------------
# 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