#22011·uv

Can't install packages: UnknownIssuer

Author: thomasw-mitutoyo-ctlCreated Sep 27, 2026Updated Sep 28, 2026
Labelsbug

Summary

I want to use uv to install packages. It failed in Pycharm. Also in PyCharm, I can't specify command line parameters for uv, so I do it manually.

What doesn't work:

bash
> uv pip install isodate
⠙ Resolving dependencies...                                                                                                                                                                                                                                                                                         error: Failed to fetch: `https://pypi.org/simple/isodate/`                                                                                                                                                                                                                                                          
  cause: error sending request for url (https://pypi.org/simple/isodate/)
  cause: client error (Connect)
  cause: invalid peer certificate: UnknownIssuer
bash
> uv --system-certs pip install isodate
⠙ Resolving dependencies...                                                                                                                                                                                                                                                                                         error: Failed to fetch: `https://pypi.org/simple/isodate/`                                                                                                                                                                                                                                                          
  cause: error sending request for url (https://pypi.org/simple/isodate/)
  cause: client error (Connect)
  cause: invalid peer certificate: UnknownIssuer
bash
> uv add isodate
⠙ sourcesafe-log-impact==0.1.0                                                                                                                                                                                                                                                                                      error: Failed to fetch: `https://pypi.org/simple/isodate/`                                                                                                                                                                                                                                                          
  cause: error sending request for url (https://pypi.org/simple/isodate/)
  cause: client error (Connect)
  cause: invalid peer certificate: UnknownIssuer
bash
> uv --system-certs add isodate
⠙ sourcesafe-log-impact==0.1.0                                                                                                                                                                                                                                                                                      error: Failed to fetch: `https://pypi.org/simple/isodate/`                                                                                                                                                                                                                                                          
  cause: error sending request for url (https://pypi.org/simple/isodate/)
  cause: client error (Connect)
  cause: invalid peer certificate: UnknownIssuer
bash
> uv --native-tls add isodate  
warning: The `--native-tls` flag is deprecated and will be removed in a future release. Use `--system-certs` instead.
⠙ sourcesafe-log-impact==0.1.0                                                                                                                                                                                                                                                                                      error: Failed to fetch: `https://pypi.org/simple/isodate/`                                                                                                                                                                                                                                                          
  cause: error sending request for url (https://pypi.org/simple/isodate/)
  cause: client error (Connect)
  cause: invalid peer certificate: UnknownIssuer

The only thing which works is this:

  1. Go to my certificate store
  2. Select all GlobalSign certificates inside the trusted certificates list (I'm on a German Windows, it's called "Aktueller Benutzer\Vertrauenswürdige Stammzertifizierungsstellen\Zertifikate", should be "Current User / Trusted Root Certification Authorities" in English)
  3. Export all of them as a P7B file, called globalsign.p7b
  4. Convert the P7B file to PEM with OpenSSL: openssl.exe pkcs7 -inform DER -print_certs -in globalsign.p7b -out globalsign.pem
  5. Use the PEM file with pip:
bash
> uv pip install isodate --cert globalsign.pem
Resolved 1 package in 190ms
Prepared 1 package in 61ms
░░░░░░░░░░░░░░░░░░░░ [0/1] Installing wheels...                                                                                                                                                                                                                                                                     warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance.                                                                                                                                                                                                                
         If the cache and target directories are on different filesystems, hardlinking may not be supported.
         If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning.
Installed 1 package in 197ms
 + isodate==0.7.2

Platform

Windows 11 25H2

Version

uv 0.12.19 (bea138450 2026-09-24 x86_64-pc-windows-msvc)

Python version

Python 3.12.12