Git ssh signing not work

hydrostic
hydrostic
Community Member

here is my .gitconfig

[user]
        signingkey = ssh-ed25519 *******
        email = "{mail1}"
        name = "****"

[gpg]
  format = ssh

[gpg "ssh"]
  program = "/mnt/c/Users/****/AppData/Local/1Password/app/8/op-ssh-sign-wsl"
        allowedSignersFile = /home/****/.ssh/allowed_signers

[commit]
  gpgsign = true

[pull]
        rebase = false
[core]
        sshCommand = ssh.exe

and my allowed_signers

{mail1} ssh-ed25519 ********

but after I run git log --show-signature to check sign locally, it shows Could not verify signature.


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser: Not Provided

Comments

  • hydrostic
    hydrostic
    Community Member

    And if I run git cat-file commit HEAD
    it displays the correct signing

    tree c7ab563e653d3b0222846f18654c2e5e98635cf8
    author hydrostic <{mail1}> 1702545860 +0800
    committer hydrostic <{mail1}> 1702545860 +0800
    gpgsig -----BEGIN SSH SIGNATURE-----
     *********************************
     -----END SSH SIGNATURE-----
    
  • ChrisL8
    ChrisL8
    Community Member

    I am having the same issue. If i REMOVE this part form .gitconfig

    program = "/mnt/c/Users/****/AppData/Local/1Password/app/8/op-ssh-sign-wsl"

    then VERIFY works, but then SIGNING does not work.

This discussion has been closed.