ricardobalk / ricardobalk.nl

My personal website, made with Nuxt 3 (Vue 3), TypeScript & TailwindCSS
https://ricardobalk.nl
ISC License
0 stars 0 forks source link

Enabling PGP signatures for GitHub #81

Closed ricardobalk closed 1 year ago

ricardobalk commented 3 years ago

Should write an article about PGP signatures. I.e. by creating a PGP key and enabling PGP signatures in Git, your individual commits show up as verified on GitHub, like this:

Commit log showing verified signatures

To enable it, it basically comes down to generating a PGP key specifically designed for Code Signatures, preferably one with C and S keys only (Certify and Sign), then it comes down to making Git use them.

git config user.name <GitHub username>
git config user.email <Email address of the PGP key>
git config user.signingkey <PGP key for code signing>
git config gpg.program gpg2
git config commit.gpgsign true