Protocol to Declare and Share Developer GPG Key

by Martin Monperrus

A developer GPG key is a cryptographic key pair that serves as your digital identity in the software development ecosystem. This key enables:

This guide provides a step-by-step protocol for creating, configuring, and managing your developer GPG key. You can use this as a checklist when setting up your first key or updating an expired one.

1. Generate Your GPG Key

Create a key with 1-year expiration (recommended, never have indefinite keys)

gpg --quick-generate-key "Your Name <your.email@example.com>" rsa4096 default 1y

Export your public key as ASCII-armored for sharing

gpg --export --armor YOUR_KEY_ID > public-key.asc

2. Configure Git to Use Your Key

Add to your .gitconfig:

[user]
    name = Your Name
    email = your.email@example.com
    signingkey = YOUR_KEY_ID

[commit]
    gpgsign = true

3. Publish Your Key to Public Keyservers

Distribute to multiple keyservers for redundancy and comparison.

gpg --keyserver hkps://keys.openpgp.org --send-keys YOUR_KEY_ID
gpg --keyserver hkps://keyserver.ubuntu.com --send-keys YOUR_KEY_ID

4. Add Your Key to Development Platforms

5. Announce Your Key

Share your key ID and fingerprint through:

Following this protocol establishes a verifiable digital identity, enhancing the security and trustworthiness of your contributions.

Appendix