-
Notifications
You must be signed in to change notification settings - Fork 167
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
V1 certificates are rejected with BadDER
instead of UnsupportedCertVersion
#53
Comments
There's now an |
Ah, but apparently the error returned when the version field is missing completely is still |
Right. The way to encode "version 1" is by not encoding the version at all, unfortunately. The best way to fix that would be to change ring's DER parser to return different errors for "the tag isn't what was expected" vs. other errors. I would take PRs to ring and to webpki to do that. |
BadDER
instead of UnsupportedCertVersion
#90 is a very similar problem and the best solution seems to be similar to what I suggested above. |
Either return a different error code, or document somewhere that the most likely cause of BadDER is a non-v3 certificate.
The text was updated successfully, but these errors were encountered: