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

readable CertFriendlyName names (remove \u0000) #6

Open
ju916 opened this issue Nov 12, 2015 · 1 comment
Open

readable CertFriendlyName names (remove \u0000) #6

ju916 opened this issue Nov 12, 2015 · 1 comment

Comments

@ju916
Copy link

ju916 commented Nov 12, 2015

Subject: parse-microsoft-authroot.pl

I am looking at the out put of fetch-microsoft-authroot.sh in authroot.json.
The CertFriendlyName looks like that:

"CertFriendlyName" : "C\u0000e\u0000r\u0000t\u0000p\u0000l\u0000u\u0000s\u0000 \u0000R\u0000o\u0000o\u0000t\u0000 \u0000C\u0000A\u0000 \u0000G\u00002\u0000\u0000"

Doing

grep CertFriendlyName authroot.json | sed 's/\\u0000//g'

produces something really "friendly" like:

"CertFriendlyName" : "Certplus Root CA G2"

I am sure that it's easy to get that into the perl script parse-microsoft-authroot.pl. Changing

-$CertFriendlyName =~ s/\x00$//g;
+$CertFriendlyName =~ s/\x00//g;

does the job for me. But it might break other things.

@ecki
Copy link

ecki commented Feb 16, 2016

This does look like UTF16, wonder if that is the string type or if the subject really is borken.

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

2 participants