You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When using httpx in a sync setting, we noticed that host names with trailing dots such as, myhost.mycompany.internal. (to mark them as fully qualified in the dns) were failing with #1063
When using httpx in a sync setting, we noticed that host names with trailing dots such as, myhost.mycompany.internal. (to mark them as fully qualified in the dns) were failing with
httpx.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Host name mismatch, certificate is not valid for 'myhost.mycompany.internal.'. (_ssl.c:1032)
However, the same request without the trailing dot in the host name works just fine.
I've seen this issue a few times in various libraries and in all cases, it was solved by stripping off the dot off the end of the host name before sending it to ssl.
Activity
Fix SSL certificate verification failure for hostnames with trailing …
fix: strip trailing dot from FQDN hostnames for TLS SNI (encode#1063)