Description of problem: p11-kit-proxy in Firefox does not detect a smart card reader if plugged in after Firefox has started. No problem with the OpenSC PKCS-11 module. Version-Release number of selected component (if applicable): p11-kit-0.23.15-3.fc30.x86_64 How reproducible: Always. Steps to Reproduce: 1. Launch Firefox. 2. Plug in reader, insert card. 3. Check security devices. Actual results: No reader and card found. Expected results: Reader and card found.
I do not think this is a bug in p11-kit, but I think this is a limitation of the way how the pkcs11 modules are handled in NSS or in Firefox.
As mentioned, it works with OK with opensc-pkcs11.so. Either way, it's a major inconvenience. In the meantime, is there a way to permanently disable p11-kit-proxy in Firefox since it obstructs loading opensc-pkcs11.so (but not onepin-opensc-pkcs11.so)?
Thank you for the clarification. It was not clear from the initial description. In that case, it is really probably something about handling the token insertion in the p11-kit. You can unregister opensc from p11-kit by removing/commenting out the file /usr/share/p11-kit/modules/opensc.module as a workaround, but this is something I would really like to look into.
I suppose this is: https://github.com/p11-glue/p11-kit/issues/221 Let me try to follow the suggestion there.
p11-kit-0.23.16.1-1.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-29385faaa3
p11-kit-0.23.16.1-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-29385faaa3
p11-kit-0.23.16.1-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.