psf / requests

A simple, yet elegant, HTTP library.
https://requests.readthedocs.io/en/latest/
Apache License 2.0
51.6k stars 9.22k forks source link

Add local TLS server #6662

Closed sigmavirus24 closed 2 months ago

sigmavirus24 commented 2 months ago

This also adds certificates for testing purposes and files to make it easy to generate/regenerate them.

This also replaces an existing test of how we utilize our pool manager such that we don't connect to badssl.com

Finally, this adds additional context parameters for our pool manager to account for mTLS certificates used by clients to authenticate to a server.

sigmavirus24 commented 2 months ago

Ack didn't mean to add that roadmap file. Was a brain dump for years back

sigmavirus24 commented 2 months ago

Edit: I guess we've got test failures coming from connection resets.

Yeah I think having a handshake failure causes the socket to be in an unhappy place but I don't feel like making this a perfect server.