Skip to content

Error about invalid peer certificate #2

@wigging

Description

@wigging

Some users report an invalid peer certificate error when running uv commands. This seems to be caused by corporate networks and how they handle system certificates.

Running commands with --native-tls such as uv --native-tls python install 3.13 fixes the error.

Another solution is to put this in the pyproject.toml file as shown below so the option does not have to be typed for every command in a project.

[tool.uv]
native-tls = true

See the following uv docs for more info:

https://docs.astral.sh/uv/reference/settings/#native-tls

This certificate error needs to be mentioned in the training docs along with the solutions mentioned above. The content can be added to the "Installing uv" section or in a new section.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions