Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 757 Bytes

01-verified.md

File metadata and controls

15 lines (11 loc) · 757 Bytes

Verified check on GitHub

  1. Install gnupg brew install gnupg
  2. Generate a new key gpg --default-new-key-algo rsa4096 --gen-key
  3. Output key ID and remember it: export KEY_ID="$(gpg --list-secret-keys --keyid-format LONG | head -3 | tail -1 | cut -c 15-30)"
  4. Export key gpg --armor --export $KEY_ID
  5. Add it to GitHub https://github.com/settings/gpg/new
  6. Configure git git config --global user.signingkey $KEY_ID
  7. Create a signed off commit git commit -S -m "Initial commit"

I had some issues and this Stackoverflow answer helped me https://stackoverflow.com/a/47087248/14209416.

Renew an expired key

Here is useful link Renew expired GPG key (GitHub Gist).