Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support commit signing with SSH key #44

Closed
julius-boettger opened this issue Mar 28, 2024 · 4 comments
Closed

Support commit signing with SSH key #44

julius-boettger opened this issue Mar 28, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@julius-boettger
Copy link

Description

I would like to be able to sign commits using an SSH key, which is possible since Git 2.34.0.

Motivation

I use SSH key authentication for Git, which makes it natural to also want to use this for commit signing.

I am already doing this using the command line for GitHub (following this guide) and would like to do it using JGit too, mainly because I like to use Gitnuro, which uses JGit. There's an an issue over at Gitnuro for this too.

Alternatives considered

I have considered...

  • not signing my commits at all
  • signing them with GPG instead

Additional context

No response

@jonesbusy
Copy link

Same issue here.

Cause

java.lang.IllegalArgumentException: Invalid value: gpg.format=ssh
        at org.eclipse.jgit.lib.DefaultTypedConfigGetter.getEnum(DefaultTypedConfigGetter.java:103)

@lizhe-0423
Copy link

所以这个问题解决了吗?我直接使用username and password 去commit的时候 会产生 not authorized的问题

@tomaswolf
Copy link
Contributor

I've pushed a series of Gerrit commits that implement SSH signing in JGit.

@tomaswolf
Copy link
Contributor

Commits are merged; the feature will be in JGit 7.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants