Issues Downloading Extra Boards - SSL?

HI all,

I've run into an issue where I am unable to download the ESP32 board definitions.
I'm pretty sure it's got something to do with the fact we use a couple of self-signed root certificates here and I'm guessing that the IDE is not utilising them properly?

Is there a way in which I could force it to not use ssl or point it to the certificate for it to work?

I can manually clone the ESP32 repository using GIT also.

Any help would be greatly appreciated!

Hi @Basstrom. Were you able to do the same thing while using the Arduino IDE 1.x? Did you need to make any special configurations?

I remember that in the past some people used a workaround of changing the standard URL for use in the "Additional Boards Manager URLs" preference from using the https scheme to http (e.g., http://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json), but I don't know whether that is applicable in this particular situation.

Are you getting any error messages in the Arduino IDE? Maybe those will provide a clue about what is going wrong.

If not, you should be able to get detailed information by running the Arduino IDE from the command line and then checking the output printed there after the download process fails. If you would like instructions for doing that, just tell me which operating system you are using.

Hi @ptillisch
Changing to http unfortuantely did not work.
Still has the error
Downloading packages
esp32:esp32@2.0.2
Failed to install platform: esp32:esp32.
Error: 2 UNKNOWN: read tcp xx.xx.xx.xx:59182->185.199.109.133:443: wsarecv: An existing connection was forcibly closed by the remote host.

I've had the same issue in the past with IDE 1.x also but a change in the firewall here I thought it'd be able to get around it.

I'm using Windows 10 and would love to try running from command line to see if that helps.

Thanks mate!

Update:

Have double checked again with IDE 1.8.19
Error downloading https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Error downloading https://downloads.arduino.cc/packages/package_index.json
Tried changing to http instead of https and it was the same issue.

I can however access the json file through Chrome.

Here are the instructions for running the IDE from the command line to get additional output for troubleshooting:

  1. Start File Explorer (AKA "Windows Explorer").
  2. Open the Arduino IDE installation folder
    (usually C:\Program Files\Arduino IDE or C:\Users\<user name>\AppData\Local\Programs\Arduino IDE).
  3. In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
  4. From the context menu, click "Open PowerShell window here".
    PowerShell will now open with the current directory set to the Arduino IDE installation folder.
  5. Type & ".\Arduino IDE".
  6. Press the Enter key.
    Debug output should now be printed to the PowerShell window as the Arduino IDE starts (or fails to start).
  7. Wait for the Arduino IDE to finish starting, or failing to start.
  8. Switch back to the PowerShell window if the Arduino IDE window took the focus.
  9. Right click on the title bar of the PowerShell window.
    This will open a context menu.
  10. Select Edit > Select All from the context menu.
    This will select all the text in the PowerShell window.
  11. Press Ctrl+C.
    This will copy the contents of the PowerShell window to the clipboard.
  12. Open a forum reply here by clicking the Reply button.
  13. Click the </> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  14. Press Ctrl+V.
    This will paste the output into the code block.
  15. Move the cursor outside of the code block markup before you add any additional text to your reply.
  16. Click the Reply button to post the output.

Please let me know if you have any questions or problems while following those instructions.

Using browser-only version of superagent in non-browser environment
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
root INFO Configuration directory URI: 'file:///c%3A/Users/deldridge/.theia'
root ERROR (node:25332) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
root INFO Theia app listening on http://localhost:55589.
root WARN The local plugin referenced by local-dir:/c%3A/Users/deldridge/.arduinoIDE/plugins does not exist.
root WARN The local plugin referenced by local-dir:/c%3A/Users/deldridge/.arduinoIDE/extensions does not exist.
root WARN The local plugin referenced by local-dir:C:\Users\deldridge\.arduinoProIDE\plugins does not exist.
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@0.3.10" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-arduino-tools" to a VS Code extension "vscode-arduino-tools@0.0.2-beta.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.52.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json" to a VS Code extension "json@1.46.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "json-language-features@1.46.1" with engines:root INFO Deploying backend plugin "cortex-debug@0.3.10" from "C:\Users\deldridge\AppData\Local\Programs\arduino-ide\resources\app\plugins\cortex-debug\extension\dist\extension"
root INFO Deploying backend plugin "vscode-arduino-tools@0.0.2-beta.1" from "C:\Users\deldridge\AppData\Local\Programs\arduino-ide\resources\app\plugins\vscode-arduino-tools\extension\dist\bundle"
root INFO Deploying backend plugin "cpp@1.52.1" from "C:\Users\deldridge\AppData\Local\Programs\arduino-ide\resources\app\plugins\vscode-builtin-cpp\extension"
root INFO Deploying backend plugin "json@1.46.1" from "C:\Users\deldridge\AppData\Local\Programs\arduino-ide\resources\app\plugins\vscode-builtin-json\extension"
root WARN Backend ConfigServiceImpl.onStart is slow, took: 430.9 ms
daemon INFO Starting daemon from C:\Users\deldridge\AppData\Local\Programs\arduino-ide\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
root INFO Deploying backend plugin "json-language-features@1.46.1" from "C:\Users\deldridge\AppData\Local\Programs\arduino-ide\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain"
root INFO Deploy plugins list took: 439.6 ms
daemon INFO Using config file: c:\Users\deldridge\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.20.2
daemon INFO Executing `arduino-cli daemon`
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO {"IP":"127.0.0.1","Port":"55596"}
daemon INFO Daemon is running.
daemon INFO Adding libraries dir [dir: c:\Users\deldridge\Documents\Arduino\libraries, location: user]
daemon INFO URL: https://downloads.arduino.cc/packages/package_index.json
daemon INFO Updating index [url: https://downloads.arduino.cc/packages/package_index.json]
root INFO Git askpass helper is listening on http://127.0.0.1:55645.
root WARN Frontend CommonFrontendContribution.configure is slow, took: 610.2 ms
root INFO Using Git [2.24.1.windows.2] from the PATH. (C:\Program Files\Git\cmd\git.exe)
root WARN Failed to resolve module: @types/body-parser
root WARN Failed to resolve module: @types/cookie
root WARN Failed to resolve module: @types/dompurify
root WARN Failed to resolve module: @types/express
root WARN Failed to resolve module: @types/fs-extra
root WARN Failed to resolve module: @types/lodash.debounce
root WARN Failed to resolve module: @types/lodash.throttle
root WARN Failed to resolve module: @types/react
root WARN Failed to resolve module: @types/react-dom
root WARN Failed to resolve module: @types/react-virtualized
root WARN Failed to resolve module: @types/route-parser
root WARN Failed to resolve module: @types/safer-buffer
root WARN Failed to resolve module: @types/ws
root WARN Failed to resolve module: @types/yargs
root WARN Failed to resolve module: @theia/monaco
root WARN Failed to resolve module: @theia/editor
root WARN Failed to resolve module: @types/multer
root WARN Failed to resolve module: @types/rimraf
root WARN Failed to resolve module: @types/tar-fs
root WARN Failed to resolve module: @types/uuid
root WARN Failed to resolve module: @theia/navigator
root WARN Failed to resolve module: @types/p-queue
root WARN Failed to resolve module: @theia/preferences
root WARN Failed to resolve module: @theia/editor-preview
root WARN Failed to resolve module: @theia/keymaps
root WARN Failed to resolve module: @theia/messages
root WARN Failed to resolve module: @types/diff
root WARN Failed to resolve module: @types/markdown-it
root WARN Failed to resolve module: @types/mime
root WARN Failed to resolve module: @types/request
root WARN Failed to resolve module: @types/atob
root WARN Failed to resolve module: @types/auth0-js
root WARN Failed to resolve module: @types/btoa
root WARN Failed to resolve module: @types/dateformat
root WARN Failed to resolve module: @types/deepmerge
root WARN Failed to resolve module: @types/glob
root WARN Failed to resolve module: @types/google-protobuf
root WARN Failed to resolve module: @types/js-yaml
root WARN Failed to resolve module: @types/keytar
root WARN Failed to resolve module: @types/ncp
root WARN Failed to resolve module: @types/node-fetch
root WARN Failed to resolve module: @types/ps-tree
root WARN Failed to resolve module: @types/react-select
root WARN Failed to resolve module: @types/react-tabs
root WARN Failed to resolve module: @types/temp
root WARN Failed to resolve module: @types/which
root INFO Updating index: package_index.json completed.
root INFO Updating index: package_index.json.sig completed.
root INFO Updating index: package_esp32_index.json completed.
daemon INFO Checking signature [error: opening signature file: open C:\Users\DELDRI~1\AppData\Local\Temp\210930511.sig: The system cannot find the file specified., index: C:\Users\DELDRI~1\AppData\Local\Temp\210930511, signaturefile: C:\Users\DELDRI~1\AppData\Local\Temp\210930511.sig]
daemon INFO URL: http://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
daemon INFO Updating index [url: http://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json]
daemon INFO Checking signature [error: opening signature file: open C:\Users\DELDRI~1\AppData\Local\Temp\603273305.sig: The system cannot find the file specified., index: C:\Users\DELDRI~1\AppData\Local\Temp\603273305, signaturefile: C:\Users\DELDRI~1\AppData\Local\Temp\603273305.sig]
daemon INFO Updating libraries index
root WARN Frontend keybindings.onStart is slow, took: 210.7 ms
root WARN Frontend TabBarToolbarRegistry.onStart is slow, took: 103.4 ms
fwuploader ERROR Error: Error executing "C:\Users\deldridge\AppData\Local\Programs\arduino-ide\resources\app\node_modules\arduino-ide-extension\build\arduino-fwuploader.exe" firmware list --format json: unexpected end of JSON input
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x133ca55]

goroutine 1 [running]:
github.com/arduino/arduino-fwuploader/cli/firmware.list(0x0, 0x0)
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/cli/firmware/list.go:66 +0x55
github.com/arduino/arduino-fwuploader/cli/firmware.newListCommand.func1(0xc000192c80, 0xc00048eda0, 0x0, 0x2)
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/cli/firmware/list.go:42 +0x45
github.com/spf13/cobra.(*Command).execute(0xc000192c80, 0xc00048ed80, 0x2, 0x2, 0xc000192c80, 0xc00048ed80)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:856 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0xc000192280, 0x0, 0x0, 0x1381a80)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
main.main()
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/main.go:35 +0x45
    at ChildProcess.<anonymous> (C:\Users\deldridge\AppData\Local\Programs\arduino-ide\resources\app\node_modules\arduino-ide-extension\lib\node\exec-util.js:53:31)
    at ChildProcess.emit (events.js:223:5)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
root ERROR Request updatableBoards failed with error: Error executing "C:\Users\deldridge\AppData\Local\Programs\arduino-ide\resources\app\node_modules\arduino-ide-extension\build\arduino-fwuploader.exe" firmware list --format json: unexpected end of JSON input
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x133ca55]

goroutine 1 [running]:
github.com/arduino/arduino-fwuploader/cli/firmware.list(0x0, 0x0)
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/cli/firmware/list.go:66 +0x55
github.com/arduino/arduino-fwuploader/cli/firmware.newListCommand.func1(0xc000192c80, 0xc00048eda0, 0x0, 0x2)
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/cli/firmware/list.go:42 +0x45
github.com/spf13/cobra.(*Command).execute(0xc000192c80, 0xc00048ed80, 0x2, 0x2, 0xc000192c80, 0xc00048ed80)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:856 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0xc000192280, 0x0, 0x0, 0x1381a80)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
main.main()
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/main.go:35 +0x45
root ERROR DefaultJsonSchemaContribution.registerSchemas is taking more than 500.0 ms, new schemas are ignored.
root INFO Updating index: library_index.json.gz completed.
root INFO Updating index: library_index.json.sig completed.
daemon INFO Checking signature [index: c:\Users\deldridge\AppData\Local\Arduino15\package_index.json, signaturefile: c:\Users\deldridge\AppData\Local\Arduino15\package_index.json.sig, trusted: true]
daemon INFO Checking signature [error: opening signature file: open c:\Users\deldridge\AppData\Local\Arduino15\package_esp32_index.json.sig: The system cannot find the file specified., index: c:\Users\deldridge\AppData\Local\Arduino15\package_esp32_index.json, signaturefile: c:\Users\deldridge\AppData\Local\Arduino15\package_esp32_index.json.sig]
daemon INFO Loading hardware from: c:\Users\deldridge\AppData\Local\Arduino15\packages
daemon INFO Loading package arduino from: C:\Users\deldridge\AppData\Local\Arduino15\packages\arduino\hardware
daemon INFO Checking signature [error: opening signature file: open C:\Users\deldridge\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\installed.json.sig: The system cannot find the file specified., index: C:\Users\deldridge\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\installed.json, signaturefile: C:\Users\deldridge\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\installed.json.sig]
daemon INFO Adding monitor tool [protocol: serial, tool: builtin:serial-monitor]
daemon INFO Loaded platform [platform: {ID:"arduino:avr",Installed:"1.8.5",Latest:"1.8.5",Name:"Arduino AVR Boards"}]
daemon INFO Checking existence of 'tools' path: C:\Users\deldridge\AppData\Local\Arduino15\packages\arduino\tools
daemon INFO Loading tools from dir: C:\Users\deldridge\AppData\Local\Arduino15\packages\arduino\tools
daemon INFO Loaded tool [tool: Version: 1.3.0 Systems: [OS: i686-linux-gnu, OS: x86_64-linux-gnu, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: i386-apple-darwin11, OS: i686-mingw32]]
daemon INFO Loaded tool [tool: Version: 7.3.0-atmel3.6.1-arduino7 Systems: [OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: x86_64-apple-darwin14, OS: i686-mingw32, OS: i686-linux-gnu, OS: x86_64-linux-gnu]]
daemon INFO Loaded tool [tool: Version: 6.3.0-arduino17 Systems: [OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: x86_64-apple-darwin12, OS: x86_64-linux-gnu, OS: i686-linux-gnu, OS: i686-mingw32]]
daemon INFO Loading package builtin from: C:\Users\deldridge\AppData\Local\Arduino15\packages\builtin
daemon INFO Checking existence of 'tools' path: C:\Users\deldridge\AppData\Local\Arduino15\packages\builtin\tools
daemon INFO Loading tools from dir: C:\Users\deldridge\AppData\Local\Arduino15\packages\builtin\tools
daemon INFO Loaded tool [tool: Version: 5.8-arduino11 Systems: [OS: i686-pc-linux-gnu, OS: x86_64-pc-linux-gnu, OS: i686-mingw32, OS: x86_64-apple-darwin, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu]]
daemon INFO Loaded tool [tool: Version: 1.0.5 Systems: [OS: i686-pc-linux-gnu, OS: x86_64-pc-linux-gnu, OS: i686-mingw32, OS: x86_64-mingw32, OS: x86_64-apple-darwin, OS: arm-linux-gnueabihf, OS: arm64-linux-gnueabihf]]
daemon INFO Loaded tool [tool: Version: 1.3.2 Systems: [OS: i686-pc-linux-gnu, OS: x86_64-pc-linux-gnu, OS: i686-mingw32, OS: x86_64-mingw32, OS: x86_64-apple-darwin, OS: arm-linux-gnueabihf, OS: arm64-linux-gnueabihf]]
daemon INFO Loaded tool [tool: Version: 0.9.1 Systems: [OS: i686-pc-linux-gnu, OS: x86_64-pc-linux-gnu, OS: i686-mingw32, OS: x86_64-mingw32, OS: x86_64-apple-darwin, OS: arm-linux-gnueabihf, OS: arm64-linux-gnueabihf]]
daemon INFO Adding libraries dir [dir: C:\Users\deldridge\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries, location: platform]
daemon INFO starting discovery builtin:serial-discovery process
daemon INFO starting discovery builtin:mdns-discovery process
daemon INFO started discovery builtin:mdns-discovery process
daemon INFO sending command HELLO 1 "arduino-cli 0.20.2" to discovery builtin:mdns-discovery
daemon INFO from discovery builtin:mdns-discovery received message type: hello, message: OK, protocol version: 1
daemon INFO started discovery builtin:serial-discovery process
daemon INFO sending command HELLO 1 "arduino-cli 0.20.2" to discovery builtin:serial-discovery
daemon INFO from discovery builtin:serial-discovery received message type: hello, message: OK, protocol version: 1
daemon INFO sending command START_SYNC to discovery builtin:serial-discovery
daemon INFO sending command START_SYNC to discovery builtin:mdns-discovery
daemon INFO from discovery builtin:mdns-discovery received message type: start_sync, message: OK
daemon INFO from discovery builtin:serial-discovery received message type: start_sync, message: OK
root WARN Frontend EditorNavigationContribution.onStart is slow, took: 5227.4 ms
root WARN Frontend WorkspaceService.onStart is slow, took: 515.4 ms
root INFO Changed application state from 'init' to 'started_contributions'.
root INFO Changed application state from 'started_contributions' to 'attached_shell'.
root INFO >>> Restoring the layout state...
root INFO [9303534d-807a-4c65-8d43-d70315e1203c] Waiting for backend deployment took: 692.9 ms [Finished 14.825 s after frontend start]
root INFO [9303534d-807a-4c65-8d43-d70315e1203c] Sync of 5 plugins took: 714.9 ms [Finished 15.540 s after frontend start]
root INFO <<< The layout has been successfully restored.
root INFO [hosted-plugin: 15404] PLUGIN_HOST(15404) starting instance
root INFO Changed application state from 'attached_shell' to 'initialized_layout'.
root INFO [9303534d-807a-4c65-8d43-d70315e1203c][marus25.cortex-debug]: Loaded contributions.
root INFO [9303534d-807a-4c65-8d43-d70315e1203c][arduino.vscode-arduino-tools]: Loaded contributions.
root INFO [9303534d-807a-4c65-8d43-d70315e1203c][vscode.cpp]: Loaded contributions.
root INFO [9303534d-807a-4c65-8d43-d70315e1203c][vscode.json]: Loaded contributions.
root INFO [9303534d-807a-4c65-8d43-d70315e1203c][vscode.json-language-features]: Loaded contributions.
root INFO [9303534d-807a-4c65-8d43-d70315e1203c] Load contributions of 5 plugins took: 331.6 ms [Finished 18.211 s after frontend start]
root WARN Frontend EditorPreviewTreeDecorator.onDidInitializeLayout is slow, took: 333.6 ms
root INFO Finished loading frontend application after 18.359 seconds
root WARN 'cpp' language is remapped from 'source.cpp.embedded.macro' to 'source.cpp' scope
root WARN a registered grammar configuration for 'cpp' language is overridden
root INFO Changed application state from 'initialized_layout' to 'ready'.
root INFO [hosted-plugin: 15404] PLUGIN_HOST(15404): PluginManagerExtImpl/init()
root INFO [hosted-plugin: 15404] PLUGIN_HOST(15404): initializing(cortex-debug@0.3.10 with C:\Users\deldridge\AppData\Local\Programs\arduino-ide\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
root INFO [hosted-plugin: 15404] Debugger contribution has been registered: cortex-debug
root INFO [hosted-plugin: 15404] PLUGIN_HOST(15404): initializing(vscode-arduino-tools@0.0.2-beta.1 with C:\Users\deldridge\AppData\Local\Programs\arduino-ide\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
root INFO [hosted-plugin: 15404] PLUGIN_HOST(15404): initializing(cpp@1.52.1 with C:\Users\deldridge\AppData\Local\Programs\arduino-ide\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
root INFO [hosted-plugin: 15404] PLUGIN_HOST(15404): initializing(json@1.46.1 with C:\Users\deldridge\AppData\Local\Programs\arduino-ide\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
root INFO [hosted-plugin: 15404] PLUGIN_HOST(15404): initializing(json-language-features@1.46.1 with C:\Users\deldridge\AppData\Local\Programs\arduino-ide\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
root INFO [hosted-plugin: 15404] PLUGIN_HOST(15404): PluginManagerExtImpl/loadPlugin(C:\Users\deldridge\AppData\Local\Programs\arduino-ide\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain)
root INFO [hosted-plugin: 15404] PLUGIN_HOST(15404): PluginManagerExtImpl/loadPlugin(C:\Users\deldridge\AppData\Local\Programs\arduino-ide\resources\app\plugins\vscode-arduino-tools\extension\dist\bundle)
root INFO [9303534d-807a-4c65-8d43-d70315e1203c][marus25.cortex-debug]: Started plugin.
root INFO [9303534d-807a-4c65-8d43-d70315e1203c][arduino.vscode-arduino-tools]: Started plugin.
root INFO [9303534d-807a-4c65-8d43-d70315e1203c][vscode.cpp]: Started plugin.
root INFO [9303534d-807a-4c65-8d43-d70315e1203c][vscode.json]: Started plugin.
root INFO [9303534d-807a-4c65-8d43-d70315e1203c][vscode.json-language-features]: Started plugin.
root INFO [9303534d-807a-4c65-8d43-d70315e1203c] Start of 5 plugins took: 2090.9 ms [Finished 20.331 s after frontend start]
root ERROR [hosted-plugin: 15404] ApplicationInsights:CorrelationIdManager [
  Error: self signed certificate in certificate chain
      at TLSSocket.onConnectSecure (_tls_wrap.js:1321:34)
      at TLSSocket.emit (events.js:223:5)
      at TLSSocket._finishInit (_tls_wrap.js:794:8)
      at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:608:12) {
    code: 'SELF_SIGNED_CERT_IN_CHAIN'
  }
]

Looking at the output I'm almost certain it's to do with the Self Signed Certificate we use here, unfortunately there's no way around not using it.
Can I add the certificate in somewhere or run it without checking for a Self-Signed Certificate?

@ptillisch Do you have any update?
The self signed certificates are in the Root CA's of the computer and accessible by all other software. For some reason Arduino is not picking it up.

I'm thinking a simple bypass would be to launch the ide with a flag to not check for self signed certificates or to bypass ssl. Is this possible? Otherwise it's a manual install which would be a bit tedious across 25 computers haha!

Unfortunately, I don't know much about this subject. I suspect that the reason changing the URL to use the http:// scheme is because GitHub is set up to redirect the http:// URL to https://.

The IDE does provide some network configuration options:

  1. Select File > Preferences... from the Arduino IDE menus.
  2. Click on the "Network" tab in the "Preferences" dialog.

However, this is only about configuring the proxy, so I don't know whether it is of any use to you.

I see that there are some command line flags, some of which look interesting:

$ ./"Arduino IDE" --help

Starting backend process. PID: 9616
Using browser-only version of superagent in non-browser environment
Arduino IDE.exe [workspace-directory] [options]

Options:
  --version                          Show version number               [boolean]
  --port, -p                         The port the backend server listens on.
                                                           [number] [default: 0]
  --hostname, -h                     The allowed hostname for connections.
                                                 [string] [default: "localhost"]
  --ssl                              Use SSL (HTTPS), cert and certkey must also
                                     be set           [boolean] [default: false]
  --cert                             Path to SSL certificate.           [string]
  --certkey                          Path to SSL certificate key.       [string]
  --app-project-path                 Sets the application project directory
                                                               [default: "C:\ide
                  2\releases\arduino-ide_2.0.0-rc4_Windows_64bit\resources\app"]
  --log-level                        Sets the default log level
                   [choices: "fatal", "error", "warn", "info", "debug", "trace"]
  --log-config                       Path to the JSON file specifying the
                                     configuration of various loggers   [string]
  --root-dir                         DEPRECATED: Sets the workspace directory.
  --plugins                          Provides further refinement for the
                                     plugins. Example:
                                     --plugins=local-dir:path/to/your/plugins
                                                                        [string]
  --plugin-max-session-logs-folders  The maximum number of plugin logs sessions
                                     folders to retain. Example:
                                     --plugin-max-session-logs-folders=5
                                                          [number] [default: 10]
  --extensionTestsPath                                                  [string]
  --pluginHostTerminateTimeout       Timeout in milliseconds to wait for the
                                     plugin host process to terminate before
                                     killing it. Use 0 for no timeout.
                                                       [number] [default: 10000]
  --pluginHostStopTimeout            Timeout in milliseconds to wait for the
                                     plugin host process to stop internal
                                     services. Use 0 for no timeout.
                                                        [number] [default: 4000]
  --vscode-api-version               Overrides the version returned by VSCode
                                     API 'vscode.version'. Example:
                                     --vscode-api-version=<Wanted Version>.
                                     Default [1.53.2]                   [string]
  --help                             Show help                         [boolean]

I believe these all come from the "Eclipse Theia" IDE framework the Arduino IDE is built on, rather than being bespoke flags added by the Arduino IDE developers. So you will be more likely to find information about them in searches using the "theia" keyword rather than "arduino".

However, the Arduino IDE is not doing this download directly. It is done by Arduino CLI, which only has the network proxy configuration capabilities that are exposed via the Arduino IDE network preferences I mentioned above.

Hello.
I am facing the same problem for 1.8.19 where when I try to add ESP 32 from the boards URL, this error shows:

Error downloading https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Error downloading https://downloads.arduino.cc/packages/package_index.json

How Can I solve this?

Hi @projectclown. This topic is about problems related to the use of a self signed SSL certificate. Are you using a self signed certificate?

If not, the discussion will be better for a dedicated topic, which I see you have already created:

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.