Skip to main content

Keyless commit signing with gitsign

Keyless gitsign commit signing with frem.sh’s signing service is not available yet. Sign your commits with an SSH key or a GPG key instead. Both show as Verified on frem.sh and both satisfy Require signed commits.

Earlier versions of this page gave gitsign setup instructions. Those instructions have been withdrawn until keyless signing works end to end. If you followed them, see If you set up gitsign from an earlier version of this page.

Sign with an SSH key

You can sign with the SSH key you already use, or with a key of its own:

ssh-keygen -t ed25519 -f ~/.ssh/git-signing-key -C "git signing key"
git config --global user.signingkey ~/.ssh/git-signing-key.pub
git config --global gpg.format ssh
git config --global commit.gpgsign true

Add the public key (~/.ssh/git-signing-key.pub) under Settings → SSH / GPG keys as a signing key. See Account settings → SSH keys and, for org admins, Require signed commits.

Prefer a GPG key?

fremforge also verifies commits signed with your own GPG key. Create one, tell Git to use it, and export its public half:

gpg --full-generate-key
gpg --list-secret-keys --keyid-format=long     # the key ID follows "sec   ed25519/"
git config --global user.signingkey <key-id>
git config --global commit.gpgsign true
gpg --armor --export <key-id>

Paste the block that starts with -----BEGIN PGP PUBLIC KEY BLOCK----- under Settings → SSH / GPG keys → Manage GPG keys → Add key. The key’s email must be a verified address on your account; your signed commits then show as Verified. See Account settings → GPG keys.

If you set up gitsign from an earlier version of this page

Remove that configuration before you set up SSH or GPG signing:

git config --global --unset-all gpg.x509.program
git config --global --unset gpg.format
git config --global --remove-section gitsign

The last command removes every gitsign.* setting. Run them in this order, so Git stops calling gitsign before its settings go. If you set any of them in a single repository rather than with --global, run the same commands in that repository without --global. A command for a setting you do not have prints an error you can ignore.

Do not run gitsign with gitsign.rekor unset: gitsign then uploads your signing certificate, including your email address, to the public Sigstore transparency log.

What the push check verifies today

For a commit signed with a frem.sh signing certificate, fremforge’s pre-receive check verifies the signature and the certificate’s validity window. The RFC 3161 timestamp a signature may carry is not yet verified on push.