Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gpg signing support for JGIT

Tags:

git

gnupg

jgit

I am using jgit for automation and I would like to ask if gpg signing is available on jgit. I haven't found an implementation yet on the net.

If it still not available, can you recommend an implementation to automate gpg signing for git?

like image 909
Mark Harold C. Rivera Avatar asked May 09 '17 00:05

Mark Harold C. Rivera


1 Answers

JGit has a task for implementing signed commits. Most of that, but at least the tasks dependency of a cryptography provider is also necessary for signed tags.

I'd suggest you execute git as a new process to amend an existing commit with a signature or to create a new tag with a signature. JGit has no problems with commits or tags created that way.

(Note: Obtaining security by automated creation of a signature, that you wouldn't have without the signature, is unlikely.)

like image 138
Jan Zerebecki Avatar answered Oct 10 '22 00:10

Jan Zerebecki