Page 1 of 1
GPG signing not working in Oxygen Git Connector?
Posted: Thu Dec 29, 2022 11:46 pm
by sabinebennett
Does the Oxygen Git Connector support GPG signing? I have GPG configured on my machine (MacbookPro) and GPG is set up in my Github account. But when I try to commit changes via the Oxygen Git Connector, I get an error message saying that the GPG service isn't running. The commit only works if I set gpgsign="false" in the git config file. The GPG signing works with other Git clients, like Sourcetree for example.
Am I missing some config setting in the Oxygen Git Connector?
Re: GPG signing not working in Oxygen Git Connector?
Posted: Tue Jan 03, 2023 2:46 pm
by alex_jitianu
Hi,
It appears as though we are missing a required library. I will register an issue for the next release, but meanwhile you can add the library yourself:
- download the
GPG support for JGit based on BouncyCastle library
- in Oxygen, go to Options->Preferences... on page Plugins and select the Git Client and copy the Location path
- open the Location path in an explorer and go in the lib folder
- copy in the lib folder the jar downloaded at the first step
Restart Oxygen and give it a try. Please let me know how it goes.
Best regards,
Alex
Re: GPG signing not working in Oxygen Git Connector?
Posted: Tue Jan 03, 2023 10:06 pm
by sabinebennett
Hi Alex,
Happy New Year, and thanks for the quick reply. I tried what you suggested, but it didn't work. I still get an error message saying "Commit failed. Signing service is not available." The commit still only works if I set gpgsign = false in the git config file.
Best regards,
Sabine
Re: GPG signing not working in Oxygen Git Connector?
Posted: Wed Jan 04, 2023 4:33 pm
by alex_jitianu
Hi Sabine,
I was so sure I didn't test it myself, but you are right, of course. I tried to add the library myself now with the same result. To fix it, I had to add two more libraries:
-
https://repo1.maven.org/maven2/org/boun ... n-1.70.jar
-
https://repo1.maven.org/maven2/org/boun ... n-1.70.jar
I don't have a GPG key, so all I got now was the error "no matching secret key found in legacy secring.gpg for key or user id: ....", but this leads me to believe that in your case it will detect the key and it will work. Please give it a try.
Best regards,
Alex
Re: GPG signing not working in Oxygen Git Connector?
Posted: Thu Jan 19, 2023 1:44 am
by sabinebennett
Hi Alex,
I added the two .jar files, like you suggested. Now I don't get an error message, but the commit just hangs. It never actually "commits". So it's unfortunately still not working.
Cheers,
Sabine
Re: GPG signing not working in Oxygen Git Connector?
Posted: Mon Jan 23, 2023 1:34 pm
by alex_jitianu
Hi,
I'm sorry to hear that. I'll test it myself and get back to you once I have either reproduced the issue or successfully committed. Either way, I hope we can manage to put this support built-in in the next Git Client release.
Best regards,
Alex
Re: GPG signing not working in Oxygen Git Connector?
Posted: Fri Jul 05, 2024 2:40 pm
by sorin_carbunaru
Hello,
Sorry for the late reply, but the Git Client was not a top priority for us in the last year and a half. Still we managed to find some time to give it a little love, and we were able to add commit signing. If you would be interested in trying it out, I could gladly provide an internal build, as the feature is still not fully tested so it was not released. Just write us at
support@oxygenxml.com.
All the best wishes,
Sorin Carbunaru
Oxygen XML Editor
Re: GPG signing not working in Oxygen Git Connector?
Posted: Mon Nov 25, 2024 2:37 pm
by sorin_carbunaru
Hi,
Just to update this thread, in v5.4.0 of the Git Client we added the possibility to sign commits using GPG keys.
All the best,
Sorin Carbunaru