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

MacOS: cannot use /Library/OpenSC/lib/opensc-pkcs11.so - agent refused operation #1040

Closed
minfrin opened this issue May 2, 2017 · 4 comments

Comments

@minfrin
Copy link

minfrin commented May 2, 2017

Expected behaviour

Using MacOS Sierra latest version, with built in ssh, "ssh-add -s /Library/OpenSC/lib/opensc-pkcs11.so" works properly.

Actual behaviour

We fail with the error "agent refused operation".

Little-Net:~ minfrin$ ssh-add -s /Library/OpenSC/lib/opensc-pkcs11.so
Enter passphrase for PKCS#11:
Could not add card "/Library/OpenSC/lib/opensc-pkcs11.so": agent refused operation

Steps to reproduce

  1. MacOS Sierra latest version 10.12.4
  2. Run "ssh-add -s /Library/OpenSC/lib/opensc-pkcs11.so"

This bug is similar to #1008, but that bug describes the pkcs11 driver in /usr/local/lib, in this case we have the driver in /Library/OpenSC/lib/.

It seems the /Library/OpenSC/lib/ directory is not "blessed".

@frankmorgner
Copy link
Member

#1008 describes that the symbolic link is mapped to /Library/OpenSC/lib. Please make a pull request as described in #1008 to solve this issue

@minfrin
Copy link
Author

minfrin commented May 3, 2017

I don't follow at all - what symbolic link are we talking about?

The bottom line is opensc used to work out of the box on MacOS Sierra, it now doesn't.

Please fix this - I cannot give my team instructions to refer to some bug report on github in order that they can log into our systems with ssh.

If I knew what was wrong I'd happily contribute a PR, but alas I do not. All I can confirm is out the box, opensc no longer works on MacOS Sierra.

@frankmorgner
Copy link
Member

Simply try the suggested fix: #1041

@JustusW
Copy link

JustusW commented Nov 8, 2022

2022, I get a password prompt, no matter what I do, same error, what dis?

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

3 participants