Closed woodruffw closed 8 months ago
https://github.com/sigstore/protobuf-specs/pull/245 now clarifies this.
Awesome! I'll open a PR for this today.
I'm looking into this now, and it's moderately complicated by the fact that we now (as of #910) have multiple chains to consider. Given that, I'm going to go with the ~X509_V_FLAG_PARTIAL_CHAIN
approach for now and revisit the more general approach if https://github.com/sigstore/protobuf-specs/issues/249 is accepted 🙂
Opened #924 with the fix.
From #910:
Makes sense! In that case, we can simulate the "long chain" building by passing only the Fulcio root into the trust store and including the intermediate via the
intermediates
parameter toX509StoreContext
. That will ensure we never terminate before the self-signed TA, regardless of OpenSSL flags likeX509_V_FLAG_PARTIAL_CHAIN
._Originally posted by @woodruffw in https://github.com/sigstore/sigstore-python/pull/910#discussion_r1511920994_