I am trying to setup my private git SSH server to accept GPG-signed push requests.
I have tried to follow Konstantin's instructions: https://people.kernel.org/monsieuricon/signed-git-pushes
On my server machine I configured the config
file of the git repository on my server as Konstantin recommended:
[core]
repositoryformatversion = 0
filemode = true
bare = true
[receive]
advertisePushOptions = true
certNonceSeed = "<nonce seed here>"
[push]
gpgSign = true
On my server and client machine I configured the following:
git config receive.certNonceSeed "<nonce seed here>"
I do the following commands on my client machine:
git add -A
git commit -S -m "Message here"
git push origin main --signed --repo=ssh://url_of_server:/path/to/repo
But git prints the following error message:
fatal: the receiving end does not support --signed push
When I type git-receive-pack ../RaiderHacks/
on my server git prints the following:
I looked over documentation for git push using man git-push
and man git-receive-pack
and I am still confused.
I am simply trying to ensure I can GPG-sign my git push requests with the GPG private key I set using the user.signingkey
config option