public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
* Git Commit Signing
@ 2025-04-03 20:41 Marrold
  2025-04-03 22:08 ` brian m. carlson
  0 siblings, 1 reply; 2+ messages in thread
From: Marrold @ 2025-04-03 20:41 UTC (permalink / raw)
  To: git

Hi all,

I'm attempting to manually verify git commits signed with SSH keys
using python, however verifying commits consistently fails, no matter
what I try.

The python verification logic has been tested against signatures
produced with ssh-keygen and confirmed to be working.

I suspect I'm constructing the message incorrectly to check against
the signature. As far as I know, the message should look like this,
with the gpgsig section removed.

    tree ff5ee8caaf2893a79711151b2937130469d83d39
    parent 3e84a21590a5ad714d168878abc95218d0e42cac
    author Matthew H <git@marrold•co.uk> 1743454803 +0100
    committer Matthew H <git@marrold•co.uk> 1743454803 +0100

    Commit message

Could someone point me in the right direction? I'm wondering if its
hashed or encoded prior to signing

Thanks
Matthew

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-03 22:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-03 20:41 Git Commit Signing Marrold
2025-04-03 22:08 ` brian m. carlson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox