Closed dmuensterer closed 1 year ago
Your source code is not complete.
Thanks for the quick reply. I didn't realize the other context would be relevant. Please find the full code and output above.
I am not surprised by the 4 seconds duration. I guess you have the same value if you use the C API directly instead of PyKCS11.
What you can do also is use the same Python program on Windows to see if you have the same results.
PyKCS11 does not slow down any native PKCS#11 call.
If C_OpenSession()
then pkcs11.openSession()
will be slow as well.
Your system information
Please describe your issue in as much detail as possible:
I'm using PyKCS11 to read the certificate from a Yubikey using a NFC reader to authenticate users. This works well but
openSession()
takes up to 4 seconds. I figured there has to be a faster way, or is this expected behaviour?This prints:
Steps for reproducing this issue:
Using a Yubikey to authenticate using an NFC reader.