Skip to content
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

Installing on MacOS 10.15.4 - dependency problems #1

Closed
jaredvacanti opened this issue Apr 10, 2020 · 5 comments
Closed

Installing on MacOS 10.15.4 - dependency problems #1

jaredvacanti opened this issue Apr 10, 2020 · 5 comments

Comments

@jaredvacanti
Copy link

I'm unfortunately having trouble installing CCIDU2F onto a laptop running MacOS Catalina 10.15.4 (19E287). The installation instructions mention to first install https://github.com/github/SoftU2F. I get this message installing v0.0.19:

Screen Shot 2020-04-10 at 4 13 56 PM

Perhaps this is related to github/SoftU2F#75. I did see this message once, but have not been able to reproduce it.

Initially when I ran CCIDU2F from Xcode I got a kext error - now it runs successfully but with no debugging output. (It was mentioned elsewhere that there should be a lot of logging, so I'm suspicious). The installation guide mentions installing SoftU2F and then using launchctl unload ... to adjust the process. Is there an alternative? Is there a way to install the kext required directly?

Does this work on lower OS versions? Is a downgrade required?

@darconeous
Copy link
Owner

It should only log messages when a smart card is inserted or removed. It prints nothing initially. If you saw that error from SoftU2F#75, then the kext is installed. Connect a reader and insert a card, see what happens.

@darconeous
Copy link
Owner

The ‘launchctl unload’ just stops the SoftU2F app, which allows the CCIDU2F process to connect to the kext. The kext only supports one process at a time, so we have to stop the SoftU2F one in order for CCIDU2F to be able to make the fake HID device upon card insertion.

@jaredvacanti
Copy link
Author

When I insert the card into a contact reader I get this error:

2020-04-11 21:07:14.611365-0500 CCIDU2F[891:8826] Smart card added to "FEITIAN iR301": <TKSmartCardATR: 0x10043cbb0 3b 18-ff T=1:--- T=1:fe-- T=15:c3--;7(c82113) 6(050363510002)>
2020-04-11 21:07:14.619266-0500 CCIDU2F[891:8826] U2F check
2020-04-11 21:07:14.646486-0500 CCIDU2F[891:8826] Card supports U2F!
2020-04-11 21:07:14.647062-0500 CCIDU2F[891:8826] Enabling Fake U2F HID Device
SoftU2F.kext not loaded.
(lldb) 

So I believe the kext installation did fail. I'll try to install it without the pkg.

@darconeous
Copy link
Owner

If I remember correctly, I had to install the package twice to get it to work. The first time failed, the second time worked. I can't remember the details.

The reason we need their kext and don't try building it ourselves is because that would require turning off system integrity protection. By using Github's signed kext we can avoid the need for that.

@jaredvacanti
Copy link
Author

Referencing this issue github/SoftU2F#64 was able to help me to install SoftU2F. I had to allow GitHub signed packages to be installed in System Preferences > Security & Privacy> General otherwise the installation fails silently.

Running

grep SoftU2F -a20 -b20 /var/log/install.log | sort -g | uniq | tail -n200

is helpful to track down more about that error for anyone else experiencing trouble.

After that, https://github.com/darconeous/u2f-javacard runs fine on Mac OS!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants