News for hackers. Stuff that matters.
Re:Linux Certificate Authority root stores have a too simple... by kelnos on Tuesday December 06, 2022 @04:09AM (#33877352)
> TLS libraries are terrible at this. Part of it is C: the "integer is the only error type you'll ever need" cannot convey the necessary context, such as which cert is the problem.

Not really; I mean, sure, the validation function will probably rely on returning an integer error code, but there's no reason that the API couldn't also provide a function to retrieve the certificate chain at hand, where an application could walk the chain backwards to the root and figure out the last one (er, or first one, depending on how you look at it) that isn't trusted.

Whether an application would choose to go to the trouble to make use of these APIs is another matter, of course. At any rate, from perspective of the average user, TLS errors are already not so easy to understand, so giving detailed information in this case might not be all that helpful anyway. Just a simple "we don't trust this website, so you shouldn't either" is about as much as most users would understand, probably.

Re:Linux Certificate Authority root stores have a too simple... by ayende on Tuesday December 06, 2022 @04:51AM (#33877596)
That assumes that the application even know to check the "only valid if issued before" flag.