Unable to update/install

PlatformIO try to update and it fails. Seems like it removed the old version and now I’m not able to do any work.
Is there any fix for this at the moment?

%23 Description of problem
Leave a comment…

BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN

%23 Configuration

VSCode: 1.97.2
PIO IDE: v3.3.4
System: Windows_NT, 10.0.26100, x64

%23 Exception

Error: WARNING: There was an error checking the latest version of pip.
WARNING: There was an error checking the latest version of pip.
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\milan\.platformio\penv\Lib\site-packages\pip\_internal\cli\base_command.py", line 106, in _run_wrapper
  status = _inner_run()
           ^^^^^^^^^^^^
File "C:\Users\milan\.platformio\penv\Lib\site-packages\pip\_internal\cli\base_command.py", line 97, in _inner_run
  return self.run(options, args)
         ^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\milan\.platformio\penv\Lib\site-packages\pip\_internal\cli\req_command.py", line 67, in wrapper
  return func(self, options, args)
         ^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\milan\.platformio\penv\Lib\site-packages\pip\_internal\commands\install.py", line 332, in run
  session = self.get_default_session(options)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\milan\.platformio\penv\Lib\site-packages\pip\_internal\cli\index_command.py", line 76, in get_default_session
  self._session = self.enter_context(self._build_session(options))
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\milan\.platformio\penv\Lib\site-packages\pip\_internal\cli\index_command.py", line 95, in _build_session
  ssl_context = _create_truststore_ssl_context()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\milan\.platformio\penv\Lib\site-packages\pip\_internal\cli\index_command.py", line 40, in _create_truststore_ssl_context
  from pip._vendor import truststore
File "C:\Users\milan\.platformio\penv\Lib\site-packages\pip\_vendor\truststore\__init__.py", line 17, in <module>
  _sslobj = _ssl.create_default_context().wrap_bio(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\milan\.platformio\python3\Lib\ssl.py", line 775, in create_default_context
  context.load_default_certs(purpose)
File "C:\Users\milan\.platformio\python3\Lib\ssl.py", line 596, in load_default_certs
  self._load_windows_store_certs(storename, purpose)
File "C:\Users\milan\.platformio\python3\Lib\ssl.py", line 588, in _load_windows_store_certs
  self.load_verify_locations(cadata=certs)
ssl.SSLError: not enough data: cadata does not contain a certificate (_ssl.c:4020)
Error: Could not install PlatformIO Core: If you have antivirus/firewall/defender software in a system, try to disable it for a while.
Command '['C:\\Users\\milan\\.platformio\\penv\\Scripts\\python.exe', '-m', 'pip', 'install', '-U', 'platformio']' returned non-zero exit status 2.
-> Installer version: 1.2.2
Platform: Windows-10
Python version: 3.11.7 (tags/v3.11.7:fa7a6f2, Dec  4 2023, 19:24:49) [MSC v.1937 64 bit (AMD64)]
Python path: C:\Users\milan\.platformio\python3\python.exe
Creating a virtual environment at C:\Users\milan\.platformio\penv
Updating Python package manager (PIP) in the virtual environment
Requirement already satisfied: pip in c:\users\milan\.platformio\penv\lib\site-packages (23.2.1)
Collecting pip
Obtaining dependency information for pip from https://files.pythonhosted.org/packages/c9/bc/b7db44f5f39f9d0494071bddae6880eb645970366d0a200022a1a93d57f5/pip-25.0.1-py3-none-any.whl.metadata
Using cached pip-25.0.1-py3-none-any.whl.metadata (3.7 kB)
Using cached pip-25.0.1-py3-none-any.whl (1.8 MB)
Installing collected packages: pip
Attempting uninstall: pip
  Found existing installation: pip 23.2.1
  Uninstalling pip-23.2.1:
    Successfully uninstalled pip-23.2.1
Successfully installed pip-25.0.1
PIP has been successfully updated!
Virtual environment has been successfully created!
Installing PlatformIO Core

  at c:\Users\milan\.vscode\extensions\platformio.platformio-ide-3.3.4-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:5250
  at ChildProcess.i (c:\Users\milan\.vscode\extensions\platformio.platformio-ide-3.3.4-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:4548)
  at ChildProcess.emit (node:events:518:28)
  at ChildProcess.emit (node:domain:489:12)
  at maybeClose (node:internal/child_process:1104:16)
  at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)

I had the same problem. You can try removing all certificates issued by MUP (Serbian government) from both user and computer certificates.