Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in "Applied" docs - Generating Keys #155

Open
xyakimo1 opened this issue Jun 1, 2023 · 0 comments
Open

Typo in "Applied" docs - Generating Keys #155

xyakimo1 opened this issue Jun 1, 2023 · 0 comments

Comments

@xyakimo1
Copy link

xyakimo1 commented Jun 1, 2023

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:

  1. When a session is opened as read only I get the following exception when generating a key with store=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.

  1. It just doesn't make sence..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant