p11-glue / p11-kit

Provides a way to load and enumerate PKCS#11 modules.
https://p11-glue.github.io/p11-glue/p11-kit.html
Other
151 stars 94 forks source link

Failed to enable unit: Unit file p11-kit-client.service does not exist #662

Open nhathuyenqt opened 3 days ago

nhathuyenqt commented 3 days ago

Hi, I followed this tutorial pkcs11 remoting on ubuntu 22 and got the error when enable p11-kit-client.service.

systemctl --user enable p11-kit-client.service
Failed to enable unit: Unit file p11-kit-client.service does not exist.

I did create some tokens by softhsm modules, then run p11-kit server --provider /usr/local/lib/softhsm/libsofthsm2.so ..., and export P11_KIT_SERVER_ADDRESS, P11_KIT_SERVER_PID but the unix socket /run/user/1001/p11-kit/ has size 0.

Please check out my another issue if possible. https://stackoverflow.com/questions/79097932/pkcs11-forwarding-client-and-server-confusion

ueno commented 2 days ago

Thank you for the report; indeed this needs to be improved, as the p11-kit-client.service file is currently distributed in a downstream package.