python-pkcs11
python-pkcs11 copied to clipboard
Get unmapped error when fingerprint is generated for more than 8 characters
Get the error PKCS11Error('Unmapped error code 0xa2') whenever a password larger than 8 characters (try 10 to 12 to replicate for sure) is entered and passed onto generate_fingerprint. Would appreciate a better error code/message for it
Somehow this got missed, it should be returning PinLenRange
Will you see if the return-pin-len-range branch works for you?
I'm having quite a few issues with my local setup running pkcs11 (initially with openSSL, and now with ImportError: cannot import name '_pkcs11' from 'pkcs11' (/Users/harshvsi/python-pkcs11/pkcs11/init.py). Any idea on the fix for this?
Sounds like it actually hasn't built, run python setup.py build
I have python setup.py build and python setup.py install there too. I also load the latest stable release for openSC (/Library/OpenSC/lib/pkcs11/opensc-pkcs11.so)