SSL: CERTIFICATE_VERIFY_FAILED error

Check if you have a folder C:\Users\<username>\.platformio

If the folder exists:

  • close VS Code
  • delete the folder (or rename it to keep its content)
  • start VS Code
  • wait until PlatformIO has performed all tasks (reinstallaton)