python-pkcs11 icon indicating copy to clipboard operation
python-pkcs11 copied to clipboard

Get unmapped error when fingerprint is generated for more than 8 characters

Open harshboi opened this issue 4 years ago • 5 comments

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

harshboi avatar Dec 23 '20 02:12 harshboi

Somehow this got missed, it should be returning PinLenRange

danni avatar Dec 23 '20 03:12 danni

Will you see if the return-pin-len-range branch works for you?

danni avatar Dec 23 '20 03:12 danni

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?

harshboi avatar Dec 23 '20 07:12 harshboi

Sounds like it actually hasn't built, run python setup.py build

danni avatar Dec 23 '20 22:12 danni

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)

harshboi avatar Dec 25 '20 22:12 harshboi