Closed moshekaplan closed 2 months ago
I think we were assuming that httpx would handle this case, but it looks like we need to pass an sni_hostname
extension in the request to get it to validate in that case. I will see about fixing this.
Fixed!
Thanks for the quick turnaround!
Describe the bug
dns.query.https
with awhere
of an IP address does not validate that the DNS server's hostname matches the certificate. Rather, I'd expect it to raise an Exception or allow controlling this directly, asdns.query.tls
does with theserver_hostname
argument.To Reproduce Make a DNS request with
dns.query.https
to a DNS server via IP address with a valid certificate that does not include the IP in the SAN. Note that the request completes successfully, instead of raising an SSL certificate error.Context (please complete the following information):