When connecting direct to an IP with TLS (e.g. tls://192.168.10.101:8089) and using a CA bundle, there is no option to set the expected CN of the host, even though Python SSL / AsyncIO offer that feature.
This PR adds that config variable PYTAK_TLS_SERVER_EXPECTED_HOSTNAME, and passes it along to the connection.
When connecting direct to an IP with TLS (e.g.
tls://192.168.10.101:8089
) and using a CA bundle, there is no option to set the expected CN of the host, even though Python SSL / AsyncIO offer that feature.This PR adds that config variable
PYTAK_TLS_SERVER_EXPECTED_HOSTNAME
, and passes it along to the connection.