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

Suggested edit for PIV/Guides/SSH_with_PIV_and_PKCS11 #168

Closed
tsuna opened this issue Feb 3, 2019 · 2 comments
Closed

Suggested edit for PIV/Guides/SSH_with_PIV_and_PKCS11 #168

tsuna opened this issue Feb 3, 2019 · 2 comments

Comments

@tsuna
Copy link

tsuna commented Feb 3, 2019

The recommendation that "Homebrew users can use export OPENSC_LIBS=$(brew --prefix opensc)/lib." is incorrect at least as of MacOS Sierra (10.13.x). It will lead to:

$ ssh-add -s $OPENSC_LIBS/opensc-pkcs11.so
Enter passphrase for PKCS#11: 
Could not add card "/usr/local/opt/opensc/lib/opensc-pkcs11.so": agent refused operation

Because ssh-agent does not allow /usr/local/opt/opensc/lib/opensc-pkcs11.so. Instead the workaround is:

sudo ln -f `brew list opensc | grep lib/opensc-pkcs11.so` /usr/local/lib/opensc-pkcs11.so

Related issues: Homebrew/homebrew-core#16385 OpenSC/OpenSC#1007 OpenSC/OpenSC#1008 #88 #153

@klali
Copy link
Member

klali commented Feb 4, 2019

thanks.

@klali klali closed this as completed in 5433a6a Feb 4, 2019
@dch
Copy link

dch commented Oct 22, 2019

this would be better expressed as find -E /usr/local/Cellar/opensc/ -name opensc-pkcs11.so -type f | head -1

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

No branches or pull requests

3 participants