uv icon indicating copy to clipboard operation
uv copied to clipboard

support setting `SSL_CERT_FILE` in `pyproject.toml`

Open DetachHead opened this issue 1 year ago • 5 comments

as far as i can tell, the cert file can only be configured with the environment variable, but because in my case the file is stored in git, it would be more convenient if it could also be configured in pyproject.toml

DetachHead avatar Aug 24 '24 07:08 DetachHead

Yea, it was briefly discussed in https://github.com/astral-sh/uv/pull/4171 adding support in a future PR for both SSL_CERT_FILE and SSL_CLIENT_CERT

samypr100 avatar Aug 25 '24 20:08 samypr100

It seems like bad practice to check-in an SSL certificate — can you share more about why you're doing that?

zanieb avatar Aug 26 '24 17:08 zanieb

it's a corporate environment with custom internal certificates that need to be known about by the libraries the project uses. it's much easier to just commit the certificate than getting everyone in the team to manually configure their tools to use it

DetachHead avatar Aug 26 '24 22:08 DetachHead

Yea, it was briefly discussed in #4171 adding support in a future PR for both SSL_CERT_FILE and SSL_CLIENT_CERT

I should clarify what I was thinking originally **Supporting CLI equivalent and global settings (e.g. pip.conf style), not at project level pyproject.toml

samypr100 avatar Aug 26 '24 22:08 samypr100

it might also be worth noting that my team uses pyprojectx to manage the uv installation locally in our project instead of installing it globally. we prefer to minimize the amount of stuff we have to install/configure globally

DetachHead avatar Aug 26 '24 22:08 DetachHead

just found out about the native-tls option, which works for my use case.

i'll leave this issue open in case anybody needs to be able to specify the path to the cert file

DetachHead avatar Jan 15 '25 23:01 DetachHead