GPG Signing Keys
Creating new keys
- Create GPG Signing Key
gpg --full-generate-key
| Parameter |
Value |
| Key Type |
RSA (Sign Only) |
| Key Size |
4096 |
| Key Duration |
3m |
- Save generated key ID for subsequent steps
- Export public key
gpg --armour --export KEY_ID > gpg.pub
- Add exported public key to Git Server
- Update git signing key ID on host machine
- This can be done by setting
modules.shell.git.signingKey to the new KEY_ID initially provided in step one.
Removing old keys
gpg --delete-secret-key KEY_ID
Telling NixOS Host about Key
GPG Keys on a System can be retrieved with gpg --list-secret-keys --keyid-format=long from the provided list. Find your target key's ID and add that to git.signingKey in host config.