-
Notifications
You must be signed in to change notification settings - Fork 84
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
x509.Cert JSON output removes invalid URL names #183
Comments
Can you provide a few examples of this? |
Here's an example I have offhand that removes the names Let me know if you need more examples.
|
The cert seems to be here: https://censys.io/certificates/d859b40f61cb7683459ba101bae740a46a87f4f67e12363b69acb47628f76384/raw I see that e.g. "mail.xn----7sba4atictgs.xn--p1ai" doesn't show up in There may be a problem with using |
That makes sense - when initially using this field I neglected to realize that |
Marshaling output to JSON removes names that are not valid URLs - see
isValidName
function inx509/json.go
. This should either be documented or changed, since it does not reflect the actual names contained in a certificate. Sidenote: this logic takes up a significant amount of processing time (discovered while performance profiling)The text was updated successfully, but these errors were encountered: