Move to TLS client protocol for http connections
Since TLS_PROTOCOL is itself deprecated, this is the suggested update. It does technically change the default behavior though: https://docs.python.org/3/library/ssl.html#ssl.PROTOCOL_TLS_CLIENT
The protocol enables [CERT_REQUIRED](https://docs.python.org/3/library/ssl.html#ssl.CERT_REQUIRED) and [check_hostname](https://docs.python.org/3/library/ssl.html#ssl.SSLContext.check_hostname) by default.
~``
Also I need to rebase but we can start the discussion.
This would change the default behavior to start enforcing hostname verification when certificates are in use. Is that a concern?
yeah it is. We have a number of tests that disable cert validation
yeah it is. We have a number of tests that disable cert validation
and those are exactly the tests that failed until I added the line about disabling hostname verification.