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

Support to change the options in the SSL context, for the test environment to simulate the server with different tls version protocols. #2179

Conversation

TheBetterSolution
Copy link

@TheBetterSolution TheBetterSolution commented Dec 8, 2023

Support to change the options in the SSL context, for the test environment to simulate the server with different tls version protocols.

Summary

Support to change the options in the SSL context, for the test environment to simulate the server with different tls version protocols.

My team hope to use uvicorn server as the test server to test the case for the different tls protocols deployed on server, for example:

  1. Server only enabled tls1.2
  2. Server only enabled tls1.3
  3. Server enabled tls1.2 and tls 1.3.
  4. Server enabled tls1.1 and tls 1.2.
    Use the ssl_versions can't control the tls versions precisely.
    I think that's common requirement to test the server's support capability for tls protocols.

I want to confirm whether the idea of this patch is allowed first, thanks.

@TheBetterSolution
Copy link
Author

We have a product that can configure the tls version explicitly, we hope the tls version can also be configured on the server explicitly for testing.

I think other professional softwares also needs this feature.

Thanks.

@Kludex
Copy link
Member

Kludex commented Feb 29, 2024

We agreed to have a non-CLI parameter to configure the SSLContext.

@Kludex Kludex closed this Feb 29, 2024
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.

3 participants