Navigation Menu

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

Fix parsing of priv keys via pub key APIs to error properly in ossl3 #7135

Merged
merged 1 commit into from Apr 27, 2022

Conversation

reaperhulk
Copy link
Member

In OpenSSL 3.0.x the PEM_read_bio_PUBKEY function will invoke the default password callback if you pass an encrypted private key. This is very, very, very bad as the default callback can trigger an interactive console prompt, which will hang the Python process. We therefore provide our own callback to catch this and error out properly.

backport of #7132

In OpenSSL 3.0.x the PEM_read_bio_PUBKEY function will invoke
the default password callback if you pass an encrypted private
key. This is very, very, very bad as the default callback can
trigger an interactive console prompt, which will hang the
Python process. We therefore provide our own callback to
catch this and error out properly.
@alex
Copy link
Member

alex commented Apr 27, 2022

codecov website shows 100% coverage

@alex alex merged commit 2d4e0b2 into pyca:37.0.x Apr 27, 2022
@reaperhulk reaperhulk deleted the backport-wat branch April 27, 2022 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants