-
-
Notifications
You must be signed in to change notification settings - Fork 845
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
Included create_ssl_context function to create the same context with SSLConfig and serve as API #996
Conversation
tests/test_config.py
Outdated
@@ -38,10 +36,11 @@ def test_load_ssl_config_verify_env_file(https_server, ca_cert_pem_file, config) | |||
else str(Path(ca_cert_pem_file).parent) | |||
) | |||
ssl_config = SSLConfig(trust_env=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be great as part of this change if we dropped using the private SSLConfig
from the tests completely.
Not necessarily a blocker to getting this PR in, but might be worth a go?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic stuff! I've put a few inline comments here.
There's also a bit of thinking we'll want to do wrt. if http2
properly lives on the SSL configuration, or on the transport, or both, but I'm not going to go into that here.
4e074b8
to
98cfdea
Compare
…SSLConfig and serve as API.
…LConfig using from tests
98cfdea
to
8a9d263
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great yup!
I'll leave it open briefly in case anyone else also want to take a review onto it, but otherwise we'll get this into 0.14.
Thanks so much !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Refs #983