Skip to content

fix(sign): use ssh-keygen for SSH commit signing (#2825)#2947

Open
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:fix/ssh-commit-signing-2825
Open

fix(sign): use ssh-keygen for SSH commit signing (#2825)#2947
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:fix/ssh-commit-signing-2825

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

  • Sign commits with gpg.format = ssh via ssh-keygen -Y sign -n git (and gpg.ssh.program, default ssh-keygen), matching Git instead of the in-process ssh-key crate.
  • Pass user.signingKey through to -f with ~ expansion, as Git does for public/private key paths.
  • Add -U when the signer is ssh-keygen so keys in ssh-agent work.
  • Remove the ssh-key dependency and its RSA advisory ignore.

Test plan

  • cargo test -p asyncgit sign::
  • cargo check -p asyncgit

Fixes #2825

Made with Cursor

Replace in-process ssh-key signing with `ssh-keygen -Y sign`, matching
Git's gpg.format=ssh behavior (agent support, encrypted keys, RSA-4096).

Fixes gitui-org#2825

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

commit with gpg.format ssh results in "cryptographic error"

1 participant