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

[WIP] pyOpenSSL-backed TLS #1140

Closed
wants to merge 8 commits into from
Closed

Conversation

dholth
Copy link

@dholth dholth commented Jul 6, 2019

I would like to be able to do OCSP stapling and other SSL tricks. Tried doing a ssl -> OpenSSL.SSL replace for asyncio https://bitbucket.org/dholth/bioopenssl/src/default/ , am now trying the same thing for trio. Amazed at how much easier to read trio is, but haven't gotten very far with this particular change.

OpenSSL.SSL is completely low level and seems to have no examples outside of the tests. Here are some examples I found:

@dholth
Copy link
Author

dholth commented Jul 7, 2019

Alternative plan: use urllib3's stdlib API wrapper around pyOpenSSL; it would need to have the server-side bits and the BIO (in memory streams) API added.

@dholth
Copy link
Author

dholth commented Jul 16, 2019

Second alternative possibility: pypy's ssl has the same interface as the stdlib's and is based on the cryptography package, which is also the base of pyopenssl.

I think the patch is very promising as is, but these other libraries are handy references / can paste their implementations of certain functions.

@njsmith
Copy link
Member

njsmith commented Jul 18, 2019

@dholth can we discuss the overall strategy in #1145 first?

@dholth
Copy link
Author

dholth commented Feb 9, 2023

How's trio's ssl hangin'

@dholth dholth closed this Feb 9, 2023
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

Successfully merging this pull request may close these issues.

2 participants