Skip to content

Included create_ssl_context function to create the same context with SSLConfig and serve as API - #996

Merged
lovelydinosaur merged 7 commits into
encode:masterfrom
cansarigol:create_ssl_context
Jul 27, 2020
Merged

Included create_ssl_context function to create the same context with SSLConfig and serve as API#996
lovelydinosaur merged 7 commits into
encode:masterfrom
cansarigol:create_ssl_context

Conversation

@cansarigol

Copy link
Copy Markdown
Contributor

Refs #983

Comment threaddocs/advanced.md
Comment threaddocs/advanced.md Outdated
Comment threadtests/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)

Copy link
Copy Markdown
Contributor

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?

Comment threadtests/test_config.py Outdated

@lovelydinosaurlovelydinosaur left a comment

Copy link
Copy Markdown
Contributor

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.

@lovelydinosaurlovelydinosaur mentioned this pull request Jul 24, 2020
@lovelydinosaurlovelydinosaur added this to the v0.14 milestone Jul 27, 2020
@lovelydinosaurlovelydinosaur added the enhancement New feature or request label Jul 27, 2020

@lovelydinosaurlovelydinosaur left a comment

Copy link
Copy Markdown
Contributor

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 !

@florimondmancaflorimondmanca left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancementNew feature or request

Development

Successfully merging this pull request may close these issues.

3 participants

@cansarigol@lovelydinosaur@florimondmanca