I've tried to add ESP32 boards to newly downloaded Arduino IDE 1.8.13 and had issue.
Problem
First, I added new URL to preferences: https://dl.espressif.com/dl/package_esp32_index.json
And then when you go to Boards Manager - you got error
Error downloading https://dl.espressif.com/dl/package_esp32_index.json
This is due bad certificates.
Solution
- I found another boards URL here https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/boards_manager.md
- It was https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
- And now Boards Manager not throw error for downloading.
- But because board SDK files need to be downloaded from dl.espressif.com - you will get more errors again.
- Workaround - each time Arduino fail to download file - look for its name and respectful URL in JSON file, download manually to C:\Users\YOUR_USERNAME\AppData\Local\Arduino15\staging\packages and hit install again.
- It will require 3 files than installation will continue.