On Nov 19, Ansgar 🙀 <ansg…@debian.org> wrote:
> 1. It should state which is the reference version. Probably the one in > nss which is the source of the convenience copy for OpenSSL-compatible > software in ca-certificates?
The reference version is ca-certificates, which follows the NSS trust store: no changes here.
> 2. It doesn't cover extra data like trust bits, explicitly untrusted > certificates, trusting only certificates issued before a certain day, > expiry dates independent of "notAfter" and similar. There is no format > to share such data over different trust stores yet as far as I can > tell. Removing these is a regression.
Of course browsers have a much more complex trust model than a list of certificates. Since browsers are special in so many other ways I think that it is fine to recognize that they cannot use ca-certificates because they actually use a different trust store. No changes here too.
> 3. It is unclear what software like Go should do when building stand- > alone binaries (possibly not even for Linux). Convert the trust store > into the appropriate format when the Go library is built? Have no trust > store and differ from upstream?
An embedded trust store in a random Go program distributed in Debian would be a policy violation, yes: it should use the system trust store. And I strongly believe that it needs to be a policy violation. I am not familiar with the Go ecosystem, but I see here https://go.dev/src/crypto/x509/root_linux.go that Go programs can use the system trust store.
> 4. Given ca-certificates doesn't see regular additions of new CAs, I > feel this would introduce regressions if browsers used this. Indeed > this has happened in the past:
I do not think that browsers should use ca-certificates, but maybe ca-certificates needs to be better maintained too.
-- ciao, Marco