Open
Description
It looks like #795 got closed prematurely. #933 made it so that you can skip setting a verify callback, and use OpenSSL's built-in verification functionality. And OpenSSL's built-in verification functionality can now verify hostnames properly on all supported OpenSSL versions. But..... you still have to turn this feature on. And pyopenssl still doesn't expose the APIs to do that. So something like #796 is still needed.
References:
- https://wiki.openssl.org/index.php/Hostname_validation
- https://www.openssl.org/docs/man1.1.0/man3/SSL_set1_host.html
- https://www.openssl.org/docs/man1.1.0/man3/X509_check_host.html
- https://www.openssl.org/docs/man1.1.0/man3/X509_VERIFY_PARAM_set1_ip.html
- https://github.com/python/cpython/blob/ba251c2ae6654bfc8abd9d886b219698ad34ac3c/Modules/_ssl.c#L862-L926
Metadata
Metadata
Assignees
Labels
No labels