uv/crates/uv-client/src
samypr100 bf99f0a195
Add support for SSL_CERT_DIR (#16473)
## Summary

Closes https://github.com/astral-sh/uv/issues/16414

Adds support for the standard
[SSL_CERT_DIR](https://docs.openssl.org/3.6/man3/SSL_CTX_load_verify_locations)
which has gained recent proper support from
[rustls-native-certs](https://github.com/rustls/rustls-native-certs/pull/187)
in v0.8.2.

In addition, this PR clarifies documentation around `SSL_CERT_FILE` and
`SSL_CERT_DIR` when used in combination with `UV_NATIVE_TLS` as
mentioned in
https://github.com/astral-sh/uv/issues/16412#issuecomment-3434927201

## Test Plan

Manually tested with custom cert chains in multiple directories and
loading them via SSL_CERT_DIR. We didn't have tests for `SSL_CERT_FILE`
or `SSL_CERT_DIR` environment variables so I added a basic one using our
own test-only certificate generation and dummy https server. I also
moved some things around for better reuse.
2025-11-16 11:48:31 -06:00
..
httpcache Improve HTTP response caching log messages (#15067) 2025-08-05 14:34:12 -05:00
base_client.rs Add support for SSL_CERT_DIR (#16473) 2025-11-16 11:48:31 -06:00
cached_client.rs Reject ambiguously parsed URLs (#16622) 2025-11-12 16:27:57 +00:00
error.rs Add support for the Simple index API top-level route (#16656) 2025-11-10 14:50:19 -05:00
flat_index.rs Reject ambiguously parsed URLs (#16622) 2025-11-12 16:27:57 +00:00
html.rs Reject ambiguously parsed URLs (#16622) 2025-11-12 16:27:57 +00:00
lib.rs Add support for the Simple index API top-level route (#16656) 2025-11-10 14:50:19 -05:00
linehaul.rs Always attach linehaul data (#16705) 2025-11-12 17:10:15 +00:00
middleware.rs Reject ambiguously parsed URLs (#16622) 2025-11-12 16:27:57 +00:00
registry_client.rs Reject ambiguously parsed URLs (#16622) 2025-11-12 16:27:57 +00:00
remote_metadata.rs Upgrade minimum Rust version to 1.83 (#9815) 2024-12-11 10:06:19 -06:00
rkyvutil.rs Bump MSRV to 1.85 and Edition 2024 (#13516) 2025-05-18 19:38:43 -04:00
tls.rs Always attach URL to network errors (#8444) 2024-10-25 09:10:18 +00:00