-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
x/crypto/x509roots: "TUBITAK Kamu SM SSL Kok Sertifikasi - Surum 1" should be constrained #61963
Comments
Assuming this constraint is an additional Mozilla one, we need https://go.dev/issue/57178 to enforce it (in the meantime perhaps we should not be including it in the bundle). |
It turns out that Mozilla doesn't fully encode trust decision information in certdata.txt, per https://wiki.mozilla.org/CA/Included_Certificates:
I was partially aware of this, i.e. with regard to the Symantec CT restrictions, but I wasn't aware the additional name constraints were also part of this. It turns out that the only additional name constraint is for this specific root. We could conceivably also consume https://ccadb-public.secure.force.com/mozilla/IncludedCACertificateReportPEMCSV to add these additional constraints, but the "Mozilla Applied Constraints" field here is not explicitly documented anywhere (as far as I can tell), so assuming it will always be a single name (or that it'll be a name at all and not something entirely different) is perhaps a pitfall. We could manually encode this particular restriction, not in the certdata parser itself, but in the root bundle generator. But that is also fragile. |
Change https://go.dev/cl/562475 mentions this issue: |
Fixes golang/go#61963 Change-Id: I16920d160af74772ef5aa650d1274e07c3ca9adc Reviewed-on: https://go-review.googlesource.com/c/crypto/+/562475 Reviewed-by: Filippo Valsorda <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
The root with CN
TUBITAK Kamu SM SSL Kok Sertifikasi - Surum 1
has Mozilla Applied Constraints of*.tr
in the https://ccadb-public.secure.force.com/mozilla/IncludedCACertificateReportPEMCSV report, but appears unconstrained in the fallback bundle./cc @rolandshoemaker
The text was updated successfully, but these errors were encountered: