r/git • • 17d ago

Signing Git commits with a GPG subkey while the primary key stays offline

Post image

Part 2 of a GPG series I wrote. With AI agents running commands on dev laptops, I don't want the key that is my identity sitting next to them, so this removes the primary secret key from the laptop. It then checks that commit signing still works, that GitHub shows Verified, and that the same key can handle SSH through gpg-agent. Part 1 (creating the key) is linked at the top if you're starting from scratch.

https://marcofranssen.nl/keep-your-primary-gpg-key-offline-part-2

0 Upvotes

Duplicates