Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Can't get signing to work
Can't get signing to work [message #1804322] Fri, 22 March 2019 12:25 Go to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 341
Registered: July 2009
Senior Member
Hello,

I wanted to utilise the new functionality for signing commits.

Configured user.signingKey and set commit.gpgSign to true.
Everything works on the command line:

git commit -a -m "My change" && git push


This asks for my passphrase and the commit gets signed and verified on GitHub.

When I try to do a signed commit within Eclipse an alert shows up: Unable to find a GPG key for signing. Configure GPG key with committer email address, set user.signingKey or disable commit signing..

Working on a linux machine.

Any idea what I can try?
Re: Can't get signing to work [message #1804365 is a reply to message #1804322] Sun, 24 March 2019 17:32 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 174
Registered: August 2016
Senior Member
Sounds like bug 545673.
Re: Can't get signing to work [message #1807251 is a reply to message #1804365] Sun, 26 May 2019 12:41 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1106
Registered: July 2009
Senior Member
update to the nightly build to get this fix
https://download.eclipse.org/egit/updates-nightly
Re: Can't get signing to work [message #1810784 is a reply to message #1807251] Mon, 19 August 2019 15:56 Go to previous messageGo to next message
Cristiano Gavião is currently offline Cristiano GaviãoFriend
Messages: 279
Registered: July 2009
Senior Member
Hello guys,
I was following the but Bug 545673 and I saw just now that it was fixed.

I've installed version 4.12.0(Build id: 20190614-1200).
I have only two keys in my ~/.gnupg/pubring.kbx and both are password protected.
I have set "signingkey" property with a 16 char length key (the one with sign and certify usage) and I'm able to commit without problems with "git -S"

But unfortunately I can't make my eclipse to commit with a sign.

could someone please give me a help?
Re: Can't get signing to work [message #1810791 is a reply to message #1810784] Mon, 19 August 2019 17:29 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 174
Registered: August 2016
Senior Member
First, please update to EGit nightly.

Second, see this other thread. It's a bit long, but the upshot is that there appear to be keys that Bouncy Castle (the crypto library we use) can't read. Unfortunately the user in that other thread deleted the throw-away key he had this problem with, so I couldn't dig any deeper.
Re: Can't get signing to work [message #1810806 is a reply to message #1810791] Tue, 20 August 2019 02:41 Go to previous messageGo to next message
Cristiano Gavião is currently offline Cristiano GaviãoFriend
Messages: 279
Registered: July 2009
Senior Member
Hi Thomas,
First thanks for your time !

The version I have installed in my IDE(using jdk11) is : Git integration for Eclipse 5.5.0.201908171731 org.eclipse.egit.feature.group Eclipse EGit

Unfortunately it didn't solve my problem to sign.

I took the LoadKey code and tried with my keys. It was able to load my password protected keys without any error, but it prints a value that is different from what I see when executing "gpg --list-keys --with-keygrip --fingerprint"

I also have parsed my main private key file with xxd and this is what I have: (9:protected25:openpgp-s2k3-sha1-aes-cbc((4:sha18:IX......8:86036480)16:..i.%

I used the ubuntu's seahorse 3.20.0 to create my keys.
Re: Can't get signing to work [message #1810870 is a reply to message #1810806] Wed, 21 August 2019 06:14 Go to previous message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 174
Registered: August 2016
Senior Member
Cristiano Gavião wrote on Tue, 20 August 2019 02:41
I took the LoadKey code and tried with my keys. It was able to load my password protected keys without any error, but it prints a value that is different from what I see when executing "gpg --list-keys --with-keygrip --fingerprint"


That's normal, and is explained in that other thread.

If LoadKey can load your private key, you have some other problem.

[Updated on: Wed, 21 August 2019 06:14]

Report message to a moderator

Previous Topic:Pull Issue
Next Topic:Latest EGit fails to sign commits with GPG [Windows]
Goto Forum:
  


Current Time: Thu Dec 12 02:42:29 GMT 2019

Powered by FUDForum. Page generated in 0.01433 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top