-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Raise a CertificateError if the certificate has no subjectAltName. #66
Comments
Wouldn’t that be a breaking change? |
I think it would be a breaking change that people want :) Rather than a "silent" error about no match, I think that you want an error about the certificat not having a SAN . As an application developer, I want to present users with meaningful / actionable error messages. |
How about a compromise: |
no, wait I spoke to soon. that doesn't work with our multiple errors. |
Like and subscribe #67 |
I have created this ticket to start a conversion.
Feel free to close it if you think this is not an issue.
This ticket is triggerd by the converstation from twisted/twisted#12074
It looks like if the server certificate has no subjectAltName, the verification will fail but the error is
It's not very obvious that the issue is misisng
subjectAltName
This is related to the change from here
https://github.com/pyca/service-identity/pull/52/files#diff-bf6d1c4ec44ff09a085657cc5b75da153a8cd025b8c72d4bd77d79e44cead072L144
In PR #52, if the certificate has no
subjectAltName
it is handled as a valid certificate without any match.Maybe, a
CertificateError('Certificate without subjectAltName.')
exception should be raised.Thanks
The text was updated successfully, but these errors were encountered: