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

ykcs11 doesn't install p11-kit module file #92

Open
dwmw2 opened this issue Oct 1, 2016 · 3 comments
Open

ykcs11 doesn't install p11-kit module file #92

dwmw2 opened this issue Oct 1, 2016 · 3 comments
Assignees

Comments

@dwmw2
Copy link

dwmw2 commented Oct 1, 2016

When I use OpenSC with my Yubikey PIV, the distribution package of OpenSC installs a .module file which ensures that opensc-pkcs11.so is loaded into any well-behaved applications automatically.

So I can use the PKCS#11 URI 'pkcs11:manufacturer=piv_II;id=%01' with any application in place of a filename for a cert/key, and expect it to work.

That does require that the PKCS#11 module be installed correctly with a p11-kit .module file though...

@dwmw2 dwmw2 changed the title ykcs doesn't install p11-kit module file ykcs11 doesn't install p11-kit module file Oct 1, 2016
@qpernil
Copy link
Contributor

qpernil commented Feb 11, 2020

I'm not very familiar with p11-kit, if you have such a module config file I'd appreciate the contribution. Do you see anything aside of the config file that would be needed ? One thing that pops to mind is the different shared library suffixes on Linux an MacOS.

@aveenismail aveenismail self-assigned this Feb 20, 2020
@ee987
Copy link

ee987 commented Jul 1, 2020

@sigv
Copy link

sigv commented Feb 26, 2021

You just need a /usr/share/p11-kit/modules/ykcs11.module file. At its most minimal configuration:

# https://p11-glue.github.io/p11-glue/p11-kit/manual/pkcs11-conf.html
module: /usr/lib/x86_64-linux-gnu/libykcs11.so

It is also possible to symlink /usr/lib/x86_64-linux-gnu/pkcs11/libykcs11.so to ../libykcs11.so.
In that case the module path provided can be a relative one - simply libykcs11.so.

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

5 participants