uv: Again problems with the --native-tls flag or SSL_CERT_FILE

After a small period of joy, again today I’m experiencing problems in using the uv pip install. Whether using the --native-tls or setting the SSL_CERT_FILE, both the approach resolve in a “Failed to tech error”.

image

When it comes to the SSL_CERT_FILE, read-only permissions on the file were given. Not sure this would be making any difference at this stage.

UV version tried, both the 0.4.28 and the 0.5.2

Would someone so kind to provide some debugging steps?

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 21 (5 by maintainers)

Most upvoted comments

I’ve found a solution to my specific problem: our setup is that there is a “root CA” and an “issuing CA”. The root CA signs the issuing CA, and the issuing CA signs the actual server certificates.

Both CAs are in the System Keychain, but only the “root CA” is marked as trusted. This seems to be fine for most tools (trusting the root CA is effectively inherited by the entire chain), but not for the libraries that uv uses. If I explicitly trust the issuing CA, it works.

This seems like a bug (in that the behaviour deviates from standard TLS libraries), but presumably in one of the upstream libraries of uv rather than in uv itself.

Yeah, I’m going to try to see if I can reproduce with the tests from that project, and if so submit a bug there.