Skip to content
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

CRL Issuer field with an empty DN #2010

Open
onepeople158 opened this issue Mar 4, 2025 · 0 comments
Open

CRL Issuer field with an empty DN #2010

onepeople158 opened this issue Mar 4, 2025 · 0 comments

Comments

@onepeople158
Copy link

onepeople158 commented Mar 4, 2025

Main content:
I have a CRL file where the DN value in the Issuer field is empty, but RFC 5280 specifies that the size of the DN should be (1..MAX). I was able to successfully print the Issuer field of this CRL file using Bouncy Castle 1.79 without any errors. For comparison, when using GnuTLS to print this CRL file, the following error was displayed: error: get_issuer_dn: ASN1 parser: Value is not valid. Therefore, I believe this might be a bug.

Version of Bouncy Castle used:

(bcprov-jdk18on-1.79.jar:bcpkix-jdk18on-1.79.jar)

Computer system:
Ubuntu

How reproducible:

javac -cp ".:bcprov-jdk18on-1.79.jar:bcpkix-jdk18on-1.79.jar" CRLParserExample_kong_issuer.java
java -cp ".:bcprov-jdk18on-1.79.jar:bcpkix-jdk18on-1.79.jar" CRLParserExample_kong_issuer

Test case:

CRLParserExample_kong_issuer.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant