-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Bouncy Castle 1.80 parsed a GeneralName with an incorrect tag. #2047
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
Comments
I guess the same what @peterdettman has written in #1986 applies here:
You have opened several Jira issues regarding validating various CRL fields. I think there are 2 general aspects:
|
Thank you for your reply, I understand now. |
Similarly to #2055, the ASN.1 parser doesn't have the information to find errors like this. The parsed value should be handled by an appropriate type, in this case
However in this case still no error is thrown, even though it ends up creating a It might be worth adding validation for |
I understand. |
In this CRL file, the GeneralName in the fullName of the distributionPoint in the IDP extension is tagged as a context-specific tag and simple encoding, with the tag value set to 4. This violates the RFC5280 specification.However, when I use Bouncy Castle 1.80 to parse this CRL file, Bouncy Castle 1.80 successfully extracts the URI value from the GeneralName without any errors. Bouncy Castle 1.80 parses its IDP extension as follows:
The string 68747470733a2f2f7777772e6578616d706c652e636f6d is the hexadecimal representation of https://www.example.com/.
Test Case:
crl_tag_gn_5.zip
Code:
The text was updated successfully, but these errors were encountered: