It turns out that doing set_context on a connection does not update the verification settings. selectContext should probably do something like:
connection.set_verify(context.get_verify_mode(), context.get_verify_callback()); connection.set_verify_depth(context.get_verify_depth()) except that the bindings for doing some of this are missing at the moment (see pyca/pyopenssl#255).
It turns out that doing
set_context
on a connection does not update the verification settings.selectContext
should probably do something like:connection.set_verify(context.get_verify_mode(), context.get_verify_callback()); connection.set_verify_depth(context.get_verify_depth())
except that the bindings for doing some of this are missing at the moment (see pyca/pyopenssl#255).