mirror of https://github.com/astral-sh/uv
## 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. |
||
|---|---|---|
| .. | ||
| httpcache | ||
| base_client.rs | ||
| cached_client.rs | ||
| error.rs | ||
| flat_index.rs | ||
| html.rs | ||
| lib.rs | ||
| linehaul.rs | ||
| middleware.rs | ||
| registry_client.rs | ||
| remote_metadata.rs | ||
| rkyvutil.rs | ||
| tls.rs | ||