-
Notifications
You must be signed in to change notification settings - Fork 8k
Print DirName differently in SAN's #20317
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
base: master
Are you sure you want to change the base?
Conversation
29a812d to
beace30
Compare
When printing SubjectAlternativeNames, print the details of DirName entries in a different format than GENERAL_NAME_print() to avoid parsing issues due to commas.
|
This is indeed better but I'm a bit worried about BC impact as it can break already the implementation parsing the current format. I know that openssl_parse_x509 docs note that it is deliberately not documented but considering that it has been like this for ages, it's quite possible that changes in it will break code so I'm not sure we should change it. I was thinking about this in past and thought about introducing some extra flag after $short_names that would allow switching the format. We have got more use cases for it. I'm not sure if it's a great API so something like this might potentially need internals discussion / RFC. |
|
I do have a different approach to SANs, which returns comprehensive info about the SAN in an easily parsed format. I asked on the internals list if I should create an RFC on this, or just post a pull request, and if it should be included in the x509 parse output, or in a new function call, but got no response. |
|
Yeah I think |
|
About the process for merging, it works that if there are no objections from any core developer, features like this can be merged without RFC. Sorry I was a bit busy with other stuff so didn't have time to replay to your email and do the reviews sooner. It might take me some time again to do the another round of reviews but it should be all fine to get to 8.6 unless there are some objections. |
|
Would you like me to close out this pull, and create a new one with the "subjectAlternativeName" as I described above? |
When printing SubjectAlternativeNames, print the details of DirName entries in a different format than GENERAL_NAME_print() to avoid parsing issues due to commas.
Fixes #20312