Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 6:39 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Can't sign git commit
PostPosted: Sat Oct 15, 2016 11:56 pm 
Offline

Joined: Sat Oct 15, 2016 11:50 pm
Posts: 1
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.


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

PostPosted: Sun Nov 27, 2016 2:06 pm 
Offline

Joined: Sun Nov 27, 2016 2:03 pm
Posts: 1
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group