pallotron / yubiswitch

OSX status bar application to enable/disable Yubikey Nano
Other
872 stars 65 forks source link

Yubiswitch Not Working on OS X El Capitan #47

Closed cbs38 closed 8 years ago

cbs38 commented 8 years ago

On Mac OS X El Capitan (10.11.x) I can enable/disable via the Yubiswitch UI and it has no effect. Is this a known issue?

pallotron commented 8 years ago

it works for me.

image

cbs38 commented 8 years ago

Odd. Did you have to configure anything on the system side (Accessibility, Configuration, etc.) to get it working. I have tried almost everything I know to no avail.

pallotron commented 8 years ago

nope, just make sure you get producID/vendorID configured properly. restart the app just incase, and kill the helper too, instructions are in README.md

cbs38 commented 8 years ago

No joy. IDs are set and app restarted. Still no effect.

pallotron commented 8 years ago

what's the output of this command in your terminal?

$ ioreg -p IOUSB -l -w 0 -x | grep Yubikey -A10 | grep Product
pallotron commented 8 years ago

also, paste what happens in /var/log/systems.log when you try to enable/disable the key

# tail -f /var/log/system.log | grep -i yubi
cbs38 commented 8 years ago
$ ioreg -p IOUSB -l -w 0 -x | grep Yubikey -A10 | grep Product
    |     "idProduct" = 0x407
    |     "iProduct" = 0x2
    |     "USB Product Name" = "Yubikey 4 OTP+U2F+CCID"
Feb  1 14:53:00 ori-c02qp19h com.pallotron.yubiswitch.helper[6176]: Received message. idProduct: 16, idVendor: 4176, action: 1
Feb  1 14:53:13 ori-c02qp19h com.pallotron.yubiswitch.helper[6176]: Received message. idProduct: 16, idVendor: 4176, action: 0

yubiswitch_preferences

pallotron commented 8 years ago

so you got "idProduct" = 0x407.... and then you don't have the same in the preferences.... you must copy those values in the preferences..... I thought that was clear in the instructions....

pallotron commented 8 years ago

copy productID and vendorID from the ioreg command to the preferences, and restart the app just in case. i would also kill the helper to be sure:

sudo pkill -9 -f com.pallotron.yubiswitch.helper
cbs38 commented 8 years ago

Everything seems to be working this morning. The previous screenshot was to indicate the settings weren't being saved through application stop/start (the instructions are clear-ish enough). Not killing the helper service was likely the cause I'm assuming. Great tool, thank you for the help.

pallotron commented 8 years ago

np, enjoy