f6d67d57c1
See https://github.com/astral-sh/uv/issues/18890 Adds special-case validation for `SSL_CERT_FILE` and `SSL_CERT_DIR` where we actually check if webpki will accept the given certificates and, if not, emit a better error message about why. This means we perform eager validation of certificates, parsing them more than once since reqwest will parse them again on client build. Unfortunately, there's not a straight-forward way to provide our pre-parsed certificates to reqwest without doing a lot more work. Nor is there a clear way to retrieve the parsed certificates on error. We use https://github.com/rusticata/x509-parser for parsing which seems reputable. We may want to _drop_ all invalid certificates instead, but that can be a future decision and this machinery can be reused for warnings. Ideally webpki would just have better error messages, but that's a separate project.