From 844891340ff110572add9e56668321587d02be86 Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Wed, 4 Feb 2026 18:29:31 +0700 Subject: [PATCH] feat(tools): extend suggestions to fix certificate issue --- tools/idf_tools.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/idf_tools.py b/tools/idf_tools.py index 2e66545631c..f7fad23953f 100755 --- a/tools/idf_tools.py +++ b/tools/idf_tools.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# SPDX-FileCopyrightText: 2019-2025 Espressif Systems (Shanghai) CO LTD +# SPDX-FileCopyrightText: 2019-2026 Espressif Systems (Shanghai) CO LTD # # SPDX-License-Identifier: Apache-2.0 # @@ -183,10 +183,10 @@ def print_hints_on_download_error(err: str) -> None: info('Certificate issues are usually caused by an outdated certificate database on your computer.') info('Please check the documentation of your operating system for how to upgrade it.') + info('The following commands may help resolve this issue:') if sys.platform == 'darwin': - info('Running "./Install\\ Certificates.command" might be able to fix this issue.') - - info(f'Running "{sys.executable} -m pip install --upgrade certifi" can also resolve this issue in some cases.') + info(' ./Install\\ Certificates.command') + info(f' {sys.executable} -m pip install --upgrade pip-system-certs certifi') # Certificate issue on Windows can be hidden under different errors which might be even translated, # e.g. "[WinError -2146881269] ASN1 valor de tag inválido encontrado"