-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No hostname check #795
Comments
|
The above is example code, based on the pyopenssl client.py example code, which performs a connection to server https://mismatch.kuix.de |
OpenSSL, since 1.1.0, has a |
Even better, the feature is already available since OpenSSL 1.0.2. |
We expose the ability to do this properly in pyopenssl now. |
When using pyopenssl to connect to a server, the pyopenssl client side code doesn't verify that the server's certificate is valid for the target hostname.
Usually, the application code requests which hostname the server certificate should match.
This can be done with openssl as explained on https://wiki.openssl.org/index.php/Hostname_validation
I couldn't find support in pyopenssl for requesting this check.
I'll suggest patches to add this functionality.
The text was updated successfully, but these errors were encountered: