Yubico Forum
https://forum.yubico.com/

Mac OS X and gpg: OpenPGP card errors (Again!)
https://forum.yubico.com/viewtopic.php?f=26&t=1814
Page 1 of 1

Author:  yubibob [ Mon Apr 06, 2015 10:24 am ]
Post subject:  Mac OS X and gpg: OpenPGP card errors (Again!)

Hi Guys,
There are a lot of Mac users around, and a quick google will show you how hard it is to get the Yubikey working with gpg on Mac. I love the idea of the yubikey, but you make it so hard.

This setup has worked (once) but has stopped and I can't get it to work on gpg.

Here is the key installed:

$ opensc-tool -l
# Detected readers (pcsc)
Nr. Card Features Name
0 Yes Yubico Yubikey NEO OTP+CCID 00 00

All of the Yubikey tools work fine (Mgmt and personalisation)

The only thing that doesn't work is gpg (although it did once)
$ gpg --card-status
gpg: selecting openpgp failed: Card error
gpg: OpenPGP card not available: Card error

From console:
06/04/2015 10:21:15.157 com.apple.SecurityServer[15]: reader Yubico Yubikey NEO OTP+CCID 00 00 removed token "PIV_II" (xx) subservice 4
06/04/2015 10:21:21.881 com.apple.SecurityServer[15]: reader Yubico Yubikey NEO OTP+CCID 00 00 inserted token "PIV_II" (xx) subservice 4 using driver com.apple.tokend.opensc

Any clues on how to get this working?
Mac OS X 10.9.5

Author:  yubibob [ Wed Apr 08, 2015 6:50 am ]
Post subject:  Re: Mac OS X and gpg: OpenPGP card errors (Again!)

I'll answer my own question:

From the console log I could see that I had other 3rd party drivers installed from previous work with smartcards. I manually removed all of these and it all worked.

I now have a different issue but I will start a new thread for that.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/