Yubico Forum https://forum.yubico.com/ |
|
Can't sign git commit https://forum.yubico.com/viewtopic.php?f=35&t=2456 |
Page 1 of 1 |
Author: | gimgee [ Sat Oct 15, 2016 11:56 pm ] |
Post subject: | Can't sign git commit |
I've set up my Yubikey 4 to be a smartcard in GPG and I can sign, verify, encrypt, etc when using the GPG command, but when I try, Code: git commit -S -m "example" I get given the following response.Code: iMac:test user$ git commit -S -m "example" scdaemon[9428]: pcsc_control failed: invalid parameter (0x80100004) scdaemon[9428]: pcsc_vendor_specific_init: GET_FEATURE_REQUEST failed: 65538 scdaemon[9428]: signatures created so far: 5 scdaemon[9428]: DBG: asking for PIN '||Please enter the PIN%0A[sigs done: 5]' scdaemon[9428]: PIN callback returned error: IPC call has been cancelled scdaemon[9428]: app_sign failed: IPC call has been cancelled gpg: signing failed: Inappropriate ioctl for device gpg: signing failed: Inappropriate ioctl for device error: gpg failed to sign the data fatal: failed to write commit object scdaemon[9428]: updating slot 0 status: 0x0000->0x0007 (0->1) scdaemon[9428]: scdaemon (GnuPG) 2.0.30 stopped Any help would be appreciated, this only occurs when using git, nothing else. |
Author: | yangl1996 [ Sun Nov 27, 2016 2:06 pm ] |
Post subject: | Re: Can't sign git commit |
Code: brew install pinentry-mac Then edit ~/.gnupg/gpg-agent.conf to use pinentry-mac as pin entry program. It seems that the pinentry in the gnupg dependency does not work very well with git in macOS 10.12. switching to pinentry-mac solved my problem. |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |