# Help with certificate

**URL:** <https://discuss.python.org/t/help-with-certificate/105611>\
**Category:** Python Help\
**Tags:** help\
**Created:** [January 8, 2026, 10:14am UTC](https://discuss.python.org/t/help-with-certificate/105611 "2026-01-08T10:14:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![makar](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@makar](https://discuss.python.org/u/makar)\
**Post date:** [January 8, 2026, 10:14am UTC](https://discuss.python.org/t/help-with-certificate/105611/1 "2026-01-08T10:14:30Z")

</div>

I make a program with library flet and requests, i start a compile version on another pc, and he work, on my pc i have this errors with certificate, idk how i can fix this.  
Windows 10, Python 3.14.2, certificate version: 2026.1.4

`File "urllib\request.py", line 1319, in do_open`  
` File "http\client.py", line 1338, in request`  
` File "http\client.py", line 1384, in _send_request`  
` File "http\client.py", line 1333, in endheaders`  
` File "http\client.py", line 1093, in _send_output`  
` File "http\client.py", line 1037, in send`  
` File "http\client.py", line 1479, in connect`  
` File "ssl.py", line 455, in wrap_socket`  
` File "ssl.py", line 1076, in _create`  
` File "ssl.py", line 1372, in do_handshake`  
`ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1032)`

`During handling of the above exception, another exception occurred:`

`Traceback (most recent call last):`  
` File "riv_launcher.py", line 583, in <module>`  
` File "flet\utils\deprecated.py", line 40, in wrapper`  
` File "flet\app.py", line 43, in app`  
` File "flet\app.py", line 96, in run`  
` File "asyncio\runners.py", line 195, in run`  
` File "asyncio\runners.py", line 118, in run`  
` File "asyncio\base_events.py", line 725, in run_until_complete`  
` File "flet\app.py", line 228, in run_async`  
` File "flet_desktop\ __init__.py", line 39, in open_flet_view_async`  
` File "flet_desktop\ __init__.py", line 97, in __locate_and_unpack_flet_view`  
` File "flet_desktop\ __init__.py", line 218, in __download_flet_client`  
` File "urllib\request.py", line 214, in urlretrieve`  
` File "urllib\request.py", line 189, in urlopen`  
` File "urllib\request.py", line 489, in open`  
` File "urllib\request.py", line 506, in _open`  
` File "urllib\request.py", line 466, in _call_chain`  
` File "urllib\request.py", line 1367, in https_open`  
` File "urllib\request.py", line 1322, in do_open`  
`urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1032)>`

---

<div class="post-metadata">

**Author:** ![davidvael](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/davidvael/32/33558_2.png) [@davidvael](https://discuss.python.org/u/davidvael)\
**Post date:** [January 8, 2026, 1:42pm UTC](https://discuss.python.org/t/help-with-certificate/105611/2 "2026-01-08T13:42:16Z")

</div>

The issue was caused by the local Python installation not having a valid CA certificate bundle, so HTTPS requests failed with `CERTIFICATE_VERIFY_FAILED` when Flet tried to download its desktop client. The fix was to upgrade Python’s certificate bundle using `python -m pip install --upgrade certifi`, set the `SSL_CERT_FILE` and `REQUESTS_CA_BUNDLE` environment variables to point to `certifi/cacert.pem`, clear the local Flet cache located at `%LOCALAPPDATA%\flet`, and restart the terminal or system.
