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

Incomplete output for certificates with multiple CNs #265

Open
rbsec opened this issue Apr 26, 2022 · 0 comments
Open

Incomplete output for certificates with multiple CNs #265

rbsec opened this issue Apr 26, 2022 · 0 comments

Comments

@rbsec
Copy link
Owner

rbsec commented Apr 26, 2022

If a certificate has multiple CNs, the output is incomplete. If the certificate is for:

/C=UK/O=TestOrg/OU=Test/CN=foo/CN=bar

Then the subject in the output will be foo, and the bar will be lost. I guess that X509_get_subject_name() only returns the first CN?

Need to check what the full XML output looks like, and if there's a nice way to handle this.

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