-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS X - 10.9 Maveriks; Personalization Tool presents error when a YubiKey is plugged in. #25
Comments
Unable to reproduce. What error message is it? |
Error message is "Unknown error occurred" Link to Salesforce case reporting issue: https://eu1.salesforce.com/500D000000VrwBA |
The problem appears to be permissions-related. Running the tool as root works: $ sudo /Applications/YubiKey\ Personalization\ Tool.app/Contents/MacOS/YubiKey\ Personalization\ Tool |
this is probably a library error: Yubico/yubikey-personalization#34 /klas |
I found the same problem. It worked with the sudo command above.. |
any update here? |
Still need sudo AFAIK |
@zgiles - yea thats pretty clear but I am wondering the plan is to resolve it ? |
The problem with this issue has been reliably reproducing it.
/klas |
I'v got the same problem on mac osx 10.10 On the right i can see a red message "Unknow error occured" when my yubikey is plugged |
OS: Mavericks 10.10.1 |
I have the same problem on Linux (Fedora 22 using the binaries from Fedora's pkg repo). If I run Right clicking on the Yubico logo and displaying detailed diagnostics shows the following log:
with repeated I'm unable to run the GUI as root or via sudo as the following errors occur:
Running
but running the same things via
The version of the GUI I'm using is:
|
Same issue here, but even running with sudo does not fix it for me (OS X 10.11):
The personalization tool shows "No YubiKey inserted" when ran normally and does not run at all with EDIT: Seems like my Yubikey isn't supposed to work with it - https://www.yubico.com/products/yubikey-hardware/fido-u2f-security-key/#toggle-id-10 |
I have this problem on El Capitan. Pretty frustrating to plug in the new toy and it doesn't work with the software. Running through sudo is not ideal and isn't documented anywhere from what I could see. edit: I originally said "Yosemite" but meant "El Capitan" |
What @MikeWeller said. |
Same issue with 10.10.5 and Yubikey neo. The command line personalization tools work fine when run with sudo, but give USB error messages as above when run as an unprivileged user. |
New replacement keys arrived this week, but now i'm also having a problem with the personalisation tools. It shows "No YubiKey inserted". Although this time I am able to use the key (on Github and Google) with the default configuration. I've been unable to launch as root however, so can't confirm that. |
Hi @TomK, Does that help with your issue? If not, please ignore me... |
@SueHeim Thank you, that resolves my problem. The previous "broken(?)" keys were configurable with the personalization tool, so I wrongly assumed these new ones would be too. My mistake. They work fine as U2F keys. Thanks! |
@TomK, glad to help you with your issue! Note that we are still offering a 20% discount on all YubiKeys for GitHub users. Just go to our store (https://www.yubico.com/store/) and sign in with your GitHub account. You can buy keys that can be configured, and that are also U2F (both the YubiKey NEO and YubiKey Edge are U2F-certified). |
Meh. The "unknown error occurred" should be replaced by an error that makes more sense. In this case, it's a known error: "permission denied". Secondly such a problem can be mitigated properly by using an udev ruleset. Is any such ruleset available from somewhere? The sudo recommendation is a poor workaround. The Yubikey is to enhance security. Another good security practice is "don't get used to using sudo." Yubico, C'mon. Fix this properly, please. |
@voidzero this issue is about problems on OS X. For linux udev rules are included with the library package yubikey-personalization that is a dependency of this software and should be installed with it. |
I would still like it if the 'unknown error' could be changed to something more descriptive, but other than that you're right: what I said about Linux rules is irrelevant so I stand corrected on that. Apologies. |
@klali Re:
Should I start a new issue for Linux as I'm seeing the same permissions issues on sveral Fedora 22 machines as I mentioned above. (And I do have |
@gavinsimpson please do. if the ykpersonalize tool fails as well please open the issue on https://github.com/Yubico/yubikey-personalization instead. |
Same error here of "2015-12-18T18:25:31; USB Error: kIOReturnSuccess" Running Mac OS X 10.11. sudo ykinfo -a shows: Running tool as sudo does not resolve issue. :( |
Same like @ScottyKnows Touching the yubikey gives me the OTP string. sudo ./ykinfo -a Personalizations tool UI and Authenticator UI on Mac is not working. ('unknown error' , "No Yubikey Found") |
Found what's causing it, I am surprised that YubiCo has been unable to reproduce it ever. https://mig5.net/content/secure-keyboard-entry-os-x-blocks-interaction-yubikeys |
@danielgriggs that has been discussed in Yubico/yubikey-personalization#34 and people have reported mixed success. I'm very happy to hear that that solution worked for you and would be happy for more feedback if that helps for others. |
Just upgraded to OSX Sierra - now I'm also getting "unknown error" in the GUI when run as normal user, and "Illegal instruction: 4" when run with sudo :( |
Experiencing the same issue since upgrading to Sierra for my Neo-n. No issues with my Yubikey 4 though. That displays fine in the personalisation tool. |
Got the same problem as @shish . Any ETA to fix this issue? |
In case it helps debugging, sometimes plugging in multiple times results in the Yubikey being recognized for probably 1 – 2 seconds but then I get "Unknown error occured" again so it's still unusable on macOS 10.12.1. |
I just noticed something else that can cause the If you're running a keyboard altering tool, like Karabiner ( old KeyRemap4MacBook or the newer version Karabiner-Elements ) it may be causing the Secure Keyboard Entry protection or something similar to it to activate, which blocks access to the YubiKey. Try to stop all possible external tools you may have installed and see if the YubiKey will get recognized. UPDATE: It seems that there is no need to quit Karabiner-Elements. You just have to untick the YubiKey in "Modify events from this device" under the |
@bisko Thanks so much, that does solve the problem for me on macOS 10.12.1/2. I am using Karabiner-Elements and after turning it off the personalization tool recognizes the YubiKey 👍 |
@ur5us I posted an update above. It's an easier fix than having to quit Karabiner-Elements :) |
@bisko Awesomesauce! |
@bisko I can confirm that this works. |
@bisko Yep. Same here. When the Karabiner-Elements is running YubiKey can't be recognised, when it's stoped YoubiKey is recognised properly. Same is true with just unticking your YubiKey under 'devices' section of Karabiner-Elements. Thanks! |
Rather than quitting Karabiner, simply toggling off its awareness of either Yubikey solved it. Both popped back up. Still frustrating, that some background process locks them down even if Karabiner is fully disabled. |
@bisko you're a life saver. Tried everything, can't believe this was the issue. |
I just bought the blue Yubikey (i.e. not NEO or 4), and I'm unable to use it at all. I'm seeing "No YubiKey inserted" in the app (installed from App Store). Also tried ykpers (1.18.0), but I get Running
macOS Sierra 10.12.6 (16G29) tl;dr — I tried everything I've seen suggested here and on the forums, but YubiKey is not recognized by the Personalization Tool. I actually purchased 3 of these and the result is the same with all units. I'm very disappointed, but hopeful. |
:sigh: just found this on the website after more digging. It should really be made much more clear (on the product page and on the page for the Personalization Tool) that this key cannot be personalized. Looks like I'll be returning the ones I bought.
|
I'm having this exact same issue in High Sierra (10.13.5) |
I just experienced the "Unknown error occurred" on macOS 10.14.4 using a Yubikey 5C. After reading @bisko's comment about Karabiner and Secure Keyboard Entry protection, I remembered having problems with Secure Keyboard Entry protection and TextExpander v6.5 / 1Password. Sure enough, switching to TextExpander and closing the window (Command-W), then re-inserting my Yubikey solved the problem with the YubiKey Personalization Tool being unable to read the key. I've added the Yubikey Personalization Tool to the app exclusion list for TextExpander (TextExpander → Preferences → Expansion → Default is to expand snippet groups in: all applications, except...). I wasn't able to reproduce the original issue, so I'm not sure if this helps solves the problem, but I thought I'd note here that TextExpander / 1Password may also cause these issues with Secure Keyboard Entry protection. |
This is still alive, but thanks to some of the comments here, I was able to quickly discern which app was causing the interference. All components of my Yubico/yubikey install are up-to-date. Initially, I suspected: KeyCue, or Typinator (or Rocket: floating emoji panel) as those were the only type of keypress event monitoring apps that are running on my machine. Secure Keyboard Entry is always active — disabling it had no effect. Eventually turned out to be Rambox.
Just an FYI, in-case anyone comes across this still. |
System Preferences ➞ Security & Privacy ➞ Privacy ➞ Input Monitoring ➞ check the "YubiKey Personalization Tool". https://support.apple.com/guide/mac-help/change-privacy-preferences-on-mac-mh32356/mac |
I am having the same issue on macOS Mojave. I am not using any keyboard altering tools like Karabiner and I never had Secure Keyboard Entry activated in Terminal. |
I am pretty sure I could identify the problem! When I have the keybase application running (keybase.io), then the yubikey is not being recognized by applications unless the application is being run as root. ykinfo -a will result in an error while sudo ykinfo -a will show the normal output When I use activity monitor to close all keybase related processes, even without a reboot, the Yubikey App as well as other apps like KeepassXC will recognize the Yubikey again! |
It looks like it's when any application listed there has Input Monitoring privileges and is also running. I had Amazon Workspaces open while trying to configure my Yubikey and it kept failing until I closed Workspaces. |
I am having the same exact problem as soon as I applied the MacOS security patch and updated to Mojave 10.14.6. yubikey-personalization-gui Version 3.1.25 does not detect any of my Yubikeys. System Preferences ➞ Security & Privacy ➞ Privacy ➞ Input Monitoring doesn't exist on Mojave Anyone found a solution to this? Thanks! |
On Catalina, adding the Pers. Tool to "Security & Privacy, Privacy, Input Monitoring" did the trick. |
@codrinbucur I recently ran into a similar issue on MacOS Catalina (10.15.4) and found a work around. I'm not sure this will help you on Mojave, but I wanted to share in case it does and also capture this for others on Catalina who may still have issues even with "Input Monitoring" granted. My setup and issue are slightly different so I'll explain that first and then explain the workaround. The personalization GUI tool (version 3.1.25, library version 1.18.1) didn't recognize my ~10 year old Yubikey or newer Yubikey 5. The newer Yubikey Manager (version 1.1.4) detected my Yubikey 5 but not the old model. Both apps had been granted "Input Monitoring" permissions in System Preferences. Oddly, I also noticed the Yubikey Manager ran into a permission issue when trying to access the OTP interface (it was enabled and I tried disabling/re-enabling it) even though all the other features appeared to work once "Input Monitoring" was granted. Being the paranoid security person I am (and many other Yubikey users likely are), my day-to-day account is a Standard rather than Admin user. An earlier comment mentioned needing sudo so I decided to switch over to my admin account and try the GUI again. Once I launched the GUI apps while logged in as a MacOS admin user, everything worked as expected. |
In my case, I just upgraded to the latest version (3.1.25) ... I don't really know if it helped, but then I had to allow the app: |
Javabien's solution worked for me. The issue was that YubiKey Personalization Tool lacked the Input Monitoring permission. I probably wouldn't have denied this permission if asked, so I'm not sure what happened. |
The same fix works in Pop-Os Linux (based on ubuntu), must run sudo in front |
When running the Personalization tool on OS X 10.9 - Mavericks, it is not able to program any YubiKey plugged into the host Machine. In the upper right corner, where the tool displays if a YubiKey is inserted, it is instead reporting and error message when a YubiKey is plugged in.
The text was updated successfully, but these errors were encountered: