python-pkcs11
python-pkcs11 copied to clipboard
Typo in "Applied" docs - Generating Keys
https://github.com/danni/python-pkcs11/blob/e35e6c45e3dcaaa1511262121ff4ab6769de941e/docs/applied.rst?plain=1#LL367C32-L367C42
Should be Storing keys requires a read/write session. instead because:
- When a session is opened as
read onlyI get the following exception when generating a key withstore=True:
File "pkcs11/_pkcs11.pyx", line 488, in pkcs11._pkcs11.Session.generate_key
File "pkcs11/_errors.pyx", line 88, in pkcs11._pkcs11.assertRV
pkcs11.exceptions.SessionReadOnly
And when a session is opened as read/write, everything is fine.
- It just doesn't make sence..