-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
"Access Violation Error" on creating legacy pkcs12 file with wrong private key #10422
Comments
I've reproduced this, thanks for reporting. |
Stack trace:
|
alex
added a commit
to alex/cryptography
that referenced
this issue
Feb 19, 2024
alex
added a commit
to alex/cryptography
that referenced
this issue
Feb 19, 2024
alex
added a commit
to alex/cryptography
that referenced
this issue
Feb 19, 2024
reaperhulk
pushed a commit
that referenced
this issue
Feb 19, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
serialize_key_and_certificates
exits the main thread with-1073741819 (0xC0000005)
when called with a private key not belonging to the certificate.Versions:
3.10.11
24.0
42.0.3
Windows 11
cryptography was installed via pip
pip install cryptography
min steps to reproduce:
I am working with a user maintained database of certs and cannot know if the certs and private keys have been stored correctly. I would like to have a descriptive exception that is catchable by python.
For now I'm building the cert first with the python
OpenSSL
lib which returns me the wrong kind of.pfx
but throws catchable errors and if no error occurs I build the.pfx
file with thecryptography
lib. A sub optimal process but it works for now.The text was updated successfully, but these errors were encountered: