Closed ethercrow closed 1 year ago
tls doesn't yet support the list of valid provider of subdomains, the certificate is allowing *.badssl.com which validate with the hostname you're trying to connect to.
This has been fixed in x509-validation-1.6.5.
When trying to connect to "expired.badssl.com" and "self-signed.badssl.com" I see relevant exceptions. However, connecting to "wrong.host.badssl.com" unexpectedly succeeds. I haven't figured out yet how to enable hostname verification or to understand if it's even implemented somewhere.