Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 11:10 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Thu Feb 09, 2017 6:38 pm 
Offline

Joined: Thu Feb 09, 2017 6:35 pm
Posts: 3
Hello,

I use my Yubikey 4 with GnuPG. With 10.12.2 it works perfectly. However, 10.12.3 makes the card invisible to GnuPG. That is, gpg2 --card-status reports that no card is available, even though system profiler reports that the card is present, OTP works, etc. I'm not even sure what it is that was broken by this update, but I thought I'd let people here know.

Thanks,
John


Top
 Profile  
Reply with quote  

Share On:

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

PostPosted: Mon Feb 13, 2017 8:10 pm 
Offline

Joined: Mon Feb 13, 2017 8:03 pm
Posts: 3
I've had a similar issue suddenly that I think I may have resolved! A couple questions for you:
  1. What version of GnuPG are you using?
  2. If you look in the process table, is there an scdaemon process running?
  3. What does your scdaemon.conf file look like?

With my installation, I discovered that if I manually ran /usr/local/Cellar/gnupg21/2.1.18/libexec/scdaemon, I suddenly had an scdaemon process, and GnuPG began behaving itself. That may or may not be related to your problem, but it at least might generate some useful debugging information to help suss out where the issue is.


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 13, 2017 9:28 pm 
Offline

Joined: Thu Feb 09, 2017 6:35 pm
Posts: 3
I'm using these versions:

scdaemon (GnuPG) 2.1.18
libgcrypt 1.7.6
libksba 1.3.5

I do have `scdaemon --multi-server` running. Starting or stopping it, running it manually, does not change the situation.

I have no scdaemon.conf file.

John


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 14, 2017 6:29 am 
Offline

Joined: Mon Feb 13, 2017 8:03 pm
Posts: 3
Rats. Well, it was worth a shot. I'm using the same version of GnuPG (2.1.18, from homebrew). FWIW, here's my scdaemon.conf file, but if stopping/starting isn't generating anything, I doubt that's it.
Code:
pcsc-driver /System/Library/Frameworks/PCSC.framework/PCSC
card-timeout 1
disable-ccid
log-file <homedir>/scdaemon.log.txt
verbose
debug-level guru


(<homedir> is the path to my home directory)


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 14, 2017 6:37 am 
Offline

Joined: Thu Feb 09, 2017 6:35 pm
Posts: 3
Add your scdaemon.conf contents fixed it for me! I think it was the PCSC reference that I needed.


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 14, 2017 12:55 pm 
Offline

Joined: Tue Feb 14, 2017 12:39 pm
Posts: 3
I don't think macOS 10.12.3 is the problem. I was running GnuPG 2.1.6 without problems on macOS 10.12.3. The upgrade to GnuPG 2.1.8 broke things for me.

As mentioned in another thread, compiling GnuPG 2.1.8 --without-libusb fixed the problem for me. I think the ``disable-ccid`` in castillar's configuration file might be what fixes it for you two, since that stops scdaemon from using libusb (as far as I can tell).

Just tried this: installed the binary gnupg21 from homebrew (with libusb support). Without ``disable-ccid``in my scdaemon.conf: no worky. Adding ``disable-ccid`` to my scdaemon.conf: works. The presence of ``pcsc-driver /System/Library/Frameworks/PCSC.framework/PCSC`` doesn't make any difference.


Top
 Profile  
Reply with quote  
PostPosted: Wed Feb 15, 2017 7:38 pm 
Offline

Joined: Mon Feb 13, 2017 8:03 pm
Posts: 3
Awesome, and glad to hear there's both a good workaround and a potential source to look at to solve it. I'll try configuring Homebrew to compile out libusb and see if that permanently implements the fix.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google [Bot] 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