Skip to content

Setup a GPG key to use with git

  • Unlock GnuPG keys on login: https://github.com/cruegge/pam-gnupg
  • Quick'n easy gpg cheatsheet: https://irtfweb.ifa.hawaii.edu/~lockhart/gpg/
  • Setting Up GPG on Windows (The Easy Way): https://www.git-tower.com/blog/setting-up-gpg-windows/
  • https://stackoverflow.com/questions/50332885/how-do-i-install-and-use-gpg-agent-on-windows
  • GPG + Git SSH Authentication and Signing on Windows 10: https://gist.github.com/matusnovak/302c7b003043849337f94518a71df777
  • https://stackoverflow.com/questions/63440623/no-gpg-passphrase-prompt-in-visual-studio-code-on-windows-10-for-signed-git-comm
GPG key setup with GitHub
  • https://docs.github.com/en/authentication/managing-commit-signature-verification
  • https://docs.github.com/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key
  • https://docs.github.com/en/authentication/managing-commit-signature-verification/adding-a-gpg-key-to-your-github-account#adding-a-gpg-key
  • https://docs.github.com/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key
  • https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits
gpg-agent
  • https://petrmanek.cz/blog/2022/unlocking-gpg-agent/
  • https://stackoverflow.com/questions/50332885/how-do-i-install-and-use-gpg-agent-on-windows
  • https://superuser.com/questions/739215/gpg-with-gpg-agent-never-asks-for-passphrase
Keyring
  • https://pypi.org/project/gnome-keyring-gpg-unlock/
  • https://wiki.archlinux.org/title/GNOME/Keyring
  • https://stackoverflow.com/questions/14756352/how-is-python-keyring-implemented-on-windows
  • https://dev.gnupg.org/T2135
  • https://superuser.com/questions/1661377/can-i-leverage-windows-authentication-to-use-my-private-gpg-key
  • https://stackoverflow.com/questions/63440623/no-gpg-passphrase-prompt-in-visual-studio-code-on-windows-10-for-signed-git-comm
GPG and YubiKey
  • https://github.com/drduh/YubiKey-Guide#github
  • https://support.yubico.com/hc/en-us/articles/360013790259-Using-Your-YubiKey-with-OpenPGP
  • https://developers.yubico.com/PGP/Importing_keys.html
  • https://google.com/search?q=add+gpg+key+to+yubikey&source=desktop

References

Download and install GPG

Download and install the applicable OS-specific GPG command line tools from https://www.gnupg.org/download/.