Open kieranjol opened 4 years ago
Hi @kieranjol,
This check is based on SMPTE ST 430-2 2006 (there is now a 2017 version but it didn't seem to change the specification in that regard). Basically the fields inside the X509 certificates (used as part of the XMLs digital signature) have to be encoded in a particular format, here named PrintableString, see extract from the spec below:
Exactly one instance of the OrganizationName attribute is required in the Subject name and the Issuer name. It shall be a PrintableString. It should be a meaningful (to humans) name of the organization that is providing the root of trust for all certificates in this chain.
I remember this was not implemented at first, then a commercial checking tool raised an error on this particular check so we added it in ClairMeta. I'm not sure on which tool it was, but probably either Clipster or EasyDCP (maybe a different version from yours). Could be good to check in Clipster. I'm not sure if this would make any failures in the field though.
My email in the gmail one by the way, not sure if you use the right one because I didn't got any files about the previous issue you raised.
Cheers
Can't find from where this check comes from, would be nice if someone had more info on this.
I believe the tests come from the DCI CTP, with the corresponding sections in ST430 which it should be tested against for ASN.1 PrintableString:
DCI CTP: 2.1.11. Public Key Thumbprint ST430-2: 5.3.1 Public Key Thumbprint (DnQualifier)
DCI CTP: 2.1.12. Organization Name Field ST430-2: 5.3.2 Root Name (OrganizationName)
DCI CTP: 2.1.13. OrganizationUnitName Field ST430-2: 5.3.3 Organization Name (OrganizationUnitName)
DCI CTP: 2.1.14. Entity Name and Roles Field ST430-2: 5.3.4 Entity Name and Roles (CommonName)
It is not stated to test for PrintableString explicitly in the CTP, but 430-2 is given as a reference, so I think it coul be interpreted as an intended check.
Hi we got the following error which easydcp player didn't pick up on. I'll email the PKL and CPL to you, but I can't find an encoding issue in the xmls..
I traced the error to here - https://github.com/Ymagis/ClairMeta/blob/7dc86fc76d4c620bec719f59394e3b0a84178bf4/clairmeta/dcp_check_sign.py