Skip to content

readable CertFriendlyName names (remove \u0000) #6

@ju916

Description

@ju916

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions