Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAILED: esp-idf/mbedtls/x509_crt_bundle (Invalid certificate) (IDFGH-3345) #5322

Closed
pc0808f opened this issue May 20, 2020 · 40 comments
Closed

Comments

@pc0808f
Copy link

pc0808f commented May 20, 2020

INSTRUCTIONS

Environment

  • Build System: [idf.py]
  • Operating System: [Windows]
  • (Windows only) environment type: [Plain Command Prompt].
  • Using an IDE?: [No]

Problem Description

//Detailed problem description goes here.
When i build in IDF4.0 do not have this problem.

but when i build in IDF4.2 it happend.

Is there anyone know how to solve this problem?

Expected Behavior

Just helloworld....

Actual Behavior

[601/796] Generating x509_crt_bundle
FAILED: esp-idf/mbedtls/x509_crt_bundle
cmd.exe /C "cd /D D:\esp23\esp-idf\workspace\blink\build\esp-idf\mbedtls && D:\esp23.espressif2\python_env\idf4.0_py3.8_env\Scripts\python.exe D:/esp23/esp-idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input D:/esp23/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"
gen_crt_bundle.py: Invalid certificate in D:/esp23/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem
Invalid certificate

Steps to reproduce

  1. clone master
  2. idf.py it compiler it

Code to reproduce this issue

the origial helloworld.

Debug Logs

[601/796] Generating x509_crt_bundle
FAILED: esp-idf/mbedtls/x509_crt_bundle 
cmd.exe /C "cd /D D:\esp23\esp-idf\workspace\blink\build\esp-idf\mbedtls && D:\esp23\.espressif2\python_env\idf4.0_py3.8_env\Scripts\python.exe D:/esp23/esp-idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input D:/esp23/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"
gen_crt_bundle.py: Invalid certificate in D:/esp23/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem
Invalid certificate
@github-actions github-actions bot changed the title FAILED: esp-idf/mbedtls/x509_crt_bundle (Invalid certificate) FAILED: esp-idf/mbedtls/x509_crt_bundle (Invalid certificate) (IDFGH-3345) May 20, 2020
@ESP-Marius
Copy link
Collaborator

Hi @pc0808f, thanks for reporting this issue.

How did you setup the IDF environment for 4.2? (using the ESP-IDF shortcut? running export.bat?). I'm asking because I notice your python environment still points to the 4.0 install (see the line about \python_env\idf4.0_py3.8_env).

@pc0808f
Copy link
Author

pc0808f commented May 20, 2020

I try using visual studio code to build.

and i got the same result.

If I disable the "Certificate Bundle" in menuconfig, then it can be build.

is it right to disable the "Certificate Bundle"?

-- ccache will be used for faster recompilation
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- App "hello-world" version: 1
-- Adding linker script D:/esp-vs/esp-idf-42/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script D:/esp-vs/esp-idf-42/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script D:/esp-vs/esp-idf-42/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script D:/esp-vs/esp-idf-42/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script D:/esp-vs/esp-idf-42/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script D:/esp-vs/esp-idf-42/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script D:/esp-vs/workspace/hello_world/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script D:/esp-vs/esp-idf-42/esp-idf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script D:/esp-vs/esp-idf-42/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_local_ctrl esp_netif esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos heap idf_test jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: D:/esp-vs/esp-idf-42/esp-idf/components/app_trace D:/esp-vs/esp-idf-42/esp-idf/components/app_update D:/esp-vs/esp-idf-42/esp-idf/components/asio D:/esp-vs/esp-idf-42/esp-idf/components/bootloader D:/esp-vs/esp-idf-42/esp-idf/components/bootloader_support D:/esp-vs/esp-idf-42/esp-idf/components/bt D:/esp-vs/esp-idf-42/esp-idf/components/cbor D:/esp-vs/esp-idf-42/esp-idf/components/coap D:/esp-vs/esp-idf-42/esp-idf/components/console D:/esp-vs/esp-idf-42/esp-idf/components/cxx D:/esp-vs/esp-idf-42/esp-idf/components/driver D:/esp-vs/esp-idf-42/esp-idf/components/efuse D:/esp-vs/esp-idf-42/esp-idf/components/esp-tls D:/esp-vs/esp-idf-42/esp-idf/components/esp32 D:/esp-vs/esp-idf-42/esp-idf/components/esp_adc_cal D:/esp-vs/esp-idf-42/esp-idf/components/esp_common D:/esp-vs/esp-idf-42/esp-idf/components/esp_eth D:/esp-vs/esp-idf-42/esp-idf/components/esp_event D:/esp-vs/esp-idf-42/esp-idf/components/esp_gdbstub D:/esp-vs/esp-idf-42/esp-idf/components/esp_hid D:/esp-vs/esp-idf-42/esp-idf/components/esp_http_client D:/esp-vs/esp-idf-42/esp-idf/components/esp_http_server D:/esp-vs/esp-idf-42/esp-idf/components/esp_https_ota D:/esp-vs/esp-idf-42/esp-idf/components/esp_https_server D:/esp-vs/esp-idf-42/esp-idf/components/esp_local_ctrl D:/esp-vs/esp-idf-42/esp-idf/components/esp_netif D:/esp-vs/esp-idf-42/esp-idf/components/esp_ringbuf D:/esp-vs/esp-idf-42/esp-idf/components/esp_rom D:/esp-vs/esp-idf-42/esp-idf/components/esp_serial_slave_link D:/esp-vs/esp-idf-42/esp-idf/components/esp_system D:/esp-vs/esp-idf-42/esp-idf/components/esp_timer D:/esp-vs/esp-idf-42/esp-idf/components/esp_websocket_client D:/esp-vs/esp-idf-42/esp-idf/components/esp_wifi D:/esp-vs/esp-idf-42/esp-idf/components/espcoredump D:/esp-vs/esp-idf-42/esp-idf/components/esptool_py D:/esp-vs/esp-idf-42/esp-idf/components/expat D:/esp-vs/esp-idf-42/esp-idf/components/fatfs D:/esp-vs/esp-idf-42/esp-idf/components/freemodbus D:/esp-vs/esp-idf-42/esp-idf/components/freertos D:/esp-vs/esp-idf-42/esp-idf/components/heap D:/esp-vs/esp-idf-42/esp-idf/components/idf_test D:/esp-vs/esp-idf-42/esp-idf/components/jsmn D:/esp-vs/esp-idf-42/esp-idf/components/json D:/esp-vs/esp-idf-42/esp-idf/components/libsodium D:/esp-vs/esp-idf-42/esp-idf/components/log D:/esp-vs/esp-idf-42/esp-idf/components/lwip D:/esp-vs/workspace/hello_world/main D:/esp-vs/esp-idf-42/esp-idf/components/mbedtls D:/esp-vs/esp-idf-42/esp-idf/components/mdns D:/esp-vs/esp-idf-42/esp-idf/components/mqtt D:/esp-vs/esp-idf-42/esp-idf/components/newlib D:/esp-vs/esp-idf-42/esp-idf/components/nghttp D:/esp-vs/esp-idf-42/esp-idf/components/nvs_flash D:/esp-vs/esp-idf-42/esp-idf/components/openssl D:/esp-vs/esp-idf-42/esp-idf/components/partition_table D:/esp-vs/esp-idf-42/esp-idf/components/perfmon D:/esp-vs/esp-idf-42/esp-idf/components/protobuf-c D:/esp-vs/esp-idf-42/esp-idf/components/protocomm D:/esp-vs/esp-idf-42/esp-idf/components/pthread D:/esp-vs/esp-idf-42/esp-idf/components/sdmmc D:/esp-vs/esp-idf-42/esp-idf/components/soc D:/esp-vs/esp-idf-42/esp-idf/components/spi_flash D:/esp-vs/esp-idf-42/esp-idf/components/spiffs D:/esp-vs/esp-idf-42/esp-idf/components/tcp_transport D:/esp-vs/esp-idf-42/esp-idf/components/tcpip_adapter D:/esp-vs/esp-idf-42/esp-idf/components/tinyusb D:/esp-vs/esp-idf-42/esp-idf/components/ulp D:/esp-vs/esp-idf-42/esp-idf/components/unity D:/esp-vs/esp-idf-42/esp-idf/components/vfs D:/esp-vs/esp-idf-42/esp-idf/components/wear_levelling D:/esp-vs/esp-idf-42/esp-idf/components/wifi_provisioning D:/esp-vs/esp-idf-42/esp-idf/components/wpa_supplicant D:/esp-vs/esp-idf-42/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: D:/esp-vs/workspace/hello_world/build
[1/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/periph_ctrl.c.obj
[2/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/rtc_module.c.obj
[3/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/sdspi_transaction.c.obj
[4/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/spi_slave.c.obj
[5/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/sdspi_host.c.obj
[6/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/sigmadelta.c.obj
[7/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/spi_bus_lock.c.obj
[8/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/rtc_io.c.obj
[9/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/rmt.c.obj
[10/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/spi_master.c.obj
[11/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/spi_common.c.obj
[12/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/timer.c.obj
[13/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/esp32/touch_sensor.c.obj
[14/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/touch_sensor_common.c.obj
[15/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/sdio_slave.c.obj
[16/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/sdmmc_host.c.obj
[17/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/mcpwm.c.obj
[18/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/uart.c.obj
[19/494] Building C object esp-idf/pthread/CMakeFiles/__idf_pthread.dir/pthread_local_storage.c.obj
[20/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/sdmmc_transaction.c.obj
[21/494] Building C object esp-idf/espcoredump/CMakeFiles/__idf_espcoredump.dir/src/core_dump_port.c.obj
[22/494] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/esp32/adc.c.obj
[23/494] Building C object esp-idf/espcoredump/CMakeFiles/__idf_espcoredump.dir/src/core_dump_uart.c.obj
[24/494] Building C object esp-idf/pthread/CMakeFiles/__idf_pthread.dir/pthread_cond_var.c.obj
[25/494] Building C object esp-idf/espcoredump/CMakeFiles/__idf_espcoredump.dir/src/core_dump_flash.c.obj
[26/494] Building C object esp-idf/espcoredump/CMakeFiles/__idf_espcoredump.dir/src/core_dump_common.c.obj
[27/494] Building C object esp-idf/perfmon/CMakeFiles/__idf_perfmon.dir/xtensa_perfmon_access.c.obj
[28/494] Building C object esp-idf/espcoredump/CMakeFiles/__idf_espcoredump.dir/src/core_dump_elf.c.obj
[29/494] Building C object esp-idf/perfmon/CMakeFiles/__idf_perfmon.dir/xtensa_perfmon_masks.c.obj
[30/494] Building C object esp-idf/perfmon/CMakeFiles/__idf_perfmon.dir/xtensa_perfmon_apis.c.obj
[31/494] Building C object esp-idf/esp32/CMakeFiles/__idf_esp32.dir/cache_err_int.c.obj
[32/494] Building C object esp-idf/esp32/CMakeFiles/__idf_esp32.dir/pm_trace.c.obj
[33/494] Building C object esp-idf/esp32/CMakeFiles/__idf_esp32.dir/cache_sram_mmu.c.obj
[34/494] Building C object esp-idf/esp32/CMakeFiles/__idf_esp32.dir/hw_random.c.obj
[35/494] Building C object esp-idf/esp32/CMakeFiles/__idf_esp32.dir/esp_himem.c.obj
[36/494] Building C object esp-idf/esp32/CMakeFiles/__idf_esp32.dir/cpu_start.c.obj
[37/494] Building C object esp-idf/esp32/CMakeFiles/__idf_esp32.dir/clk.c.obj
[38/494] Building C object esp-idf/esp32/CMakeFiles/__idf_esp32.dir/pm_esp32.c.obj
[39/494] Building C object esp-idf/esp32/CMakeFiles/__idf_esp32.dir/intr_alloc.c.obj
[40/494] Building C object esp-idf/esp32/CMakeFiles/__idf_esp32.dir/spiram_psram.c.obj
[41/494] Building C object esp-idf/esp32/CMakeFiles/__idf_esp32.dir/dport_access.c.obj
[42/494] Building C object esp-idf/esp32/CMakeFiles/__idf_esp32.dir/crosscore_int.c.obj
[43/494] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/dbg_stubs.c.obj
[44/494] Building C object esp-idf/esp32/CMakeFiles/__idf_esp32.dir/spiram.c.obj
[45/494] Building C object esp-idf/esp32/CMakeFiles/__idf_esp32.dir/system_api_esp32.c.obj
[46/494] Performing build step for 'bootloader'
[1/20] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_qio_mode.c.obj
[2/20] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse_esp32.c.obj
[3/20] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj
[4/20] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash_config_esp32.c.obj
[5/20] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj
[6/20] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_esp32.c.obj
[7/20] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj
[8/20] Linking C static library esp-idf\soc\soc\esp32\libsoc_esp32.a
[9/20] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj
[10/20] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/flash_encrypt.c.obj
[11/20] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_sha.c.obj
[12/20] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj
[13/20] Linking C static library esp-idf\soc\libsoc.a
[14/20] Linking C static library esp-idf\micro-ecc\libmicro-ecc.a
[15/20] Linking C static library esp-idf\bootloader_support\libbootloader_support.a
[16/20] Linking C static library esp-idf\efuse\libefuse.a
[17/20] Linking C static library esp-idf\spi_flash\libspi_flash.a
[18/20] Linking C static library esp-idf\main\libmain.a
[19/20] Linking C executable bootloader.elf
[20/20] Generating binary image from built executable
esptool.py v3.0-dev
Generated D:/esp-vs/workspace/hello_world/build/bootloader/bootloader.bin
[47/494] Building C object esp-idf/esp32/CMakeFiles/__idf_esp32.dir/sleep_modes.c.obj
[48/494] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/brownout.c.obj
[49/494] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/esp_err.c.obj
[50/494] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/esp_err_to_name.c.obj
[51/494] No install step for 'bootloader'
[52/494] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/freertos_hooks.c.obj
[53/494] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/stack_check.c.obj
[54/494] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/int_wdt.c.obj
[55/494] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/task_wdt.c.obj
[56/494] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/ipc.c.obj
[57/494] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/mac_addr.c.obj
[58/494] Completed 'bootloader'
[59/494] Building C object esp-idf/esp_timer/CMakeFiles/__idf_esp_timer.dir/src/ets_timer_legacy.c.obj
[60/494] Building ASM object esp-idf/freertos/CMakeFiles/__idf_freertos.dir/xtensa/xtensa_context.S.obj
[61/494] Building ASM object esp-idf/freertos/CMakeFiles/__idf_freertos.dir/xtensa/portasm.S.obj
[62/494] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/pm_locks.c.obj
[63/494] Building C object esp-idf/esp_timer/CMakeFiles/__idf_esp_timer.dir/src/esp_timer.c.obj
[64/494] Building C object esp-idf/esp_timer/CMakeFiles/__idf_esp_timer.dir/src/esp_timer_impl_lac.c.obj
[65/494] Building C object esp-idf/freertos/CMakeFiles/__idf_freertos.dir/xtensa/xtensa_overlay_os_hook.c.obj
[66/494] Building ASM object esp-idf/freertos/CMakeFiles/__idf_freertos.dir/xtensa/xtensa_intr_asm.S.obj
[67/494] Building C object esp-idf/freertos/CMakeFiles/__idf_freertos.dir/xtensa/port.c.obj
[68/494] Building C object esp-idf/freertos/CMakeFiles/__idf_freertos.dir/xtensa/xtensa_init.c.obj
[69/494] Building ASM object esp-idf/freertos/CMakeFiles/__idf_freertos.dir/xtensa/xtensa_vector_defaults.S.obj
[70/494] Building ASM object esp-idf/freertos/CMakeFiles/__idf_freertos.dir/xtensa/xtensa_vectors.S.obj
[71/494] Building C object esp-idf/freertos/CMakeFiles/__idf_freertos.dir/xtensa/xtensa_intr.c.obj
[72/494] Building C object esp-idf/freertos/CMakeFiles/__idf_freertos.dir/croutine.c.obj
[73/494] Building C object esp-idf/freertos/CMakeFiles/__idf_freertos.dir/list.c.obj
[74/494] Building C object esp-idf/freertos/CMakeFiles/__idf_freertos.dir/FreeRTOS-openocd.c.obj
[75/494] Building C object esp-idf/freertos/CMakeFiles/__idf_freertos.dir/event_groups.c.obj
[76/494] Building C object esp-idf/freertos/CMakeFiles/__idf_freertos.dir/queue.c.obj
[77/494] Building C object esp-idf/newlib/CMakeFiles/__idf_newlib.dir/abort.c.obj
[78/494] Building C object esp-idf/freertos/CMakeFiles/__idf_freertos.dir/timers.c.obj
[79/494] Building C object esp-idf/newlib/CMakeFiles/__idf_newlib.dir/pthread.c.obj
[80/494] Building C object esp-idf/newlib/CMakeFiles/__idf_newlib.dir/syscall_table.c.obj
[81/494] Building C object esp-idf/newlib/CMakeFiles/__idf_newlib.dir/syscalls.c.obj
[82/494] Building C object esp-idf/newlib/CMakeFiles/__idf_newlib.dir/reent_init.c.obj
[83/494] Building C object esp-idf/newlib/CMakeFiles/__idf_newlib.dir/heap.c.obj
[84/494] Building C object esp-idf/freertos/CMakeFiles/__idf_freertos.dir/tasks.c.obj
[85/494] Building C object esp-idf/newlib/CMakeFiles/__idf_newlib.dir/locks.c.obj
[86/494] Building C object esp-idf/newlib/CMakeFiles/__idf_newlib.dir/poll.c.obj
[87/494] Building C object esp-idf/newlib/CMakeFiles/__idf_newlib.dir/random.c.obj
[88/494] Building C object esp-idf/newlib/CMakeFiles/__idf_newlib.dir/termios.c.obj
[89/494] Building CXX object esp-idf/cxx/CMakeFiles/__idf_cxx.dir/cxx_exception_stubs.cpp.obj
[90/494] Building C object esp-idf/app_trace/CMakeFiles/__idf_app_trace.dir/host_file_io.c.obj
[91/494] Building C object esp-idf/app_trace/CMakeFiles/__idf_app_trace.dir/app_trace_util.c.obj
[92/494] Building C object esp-idf/newlib/CMakeFiles/__idf_newlib.dir/time.c.obj
[93/494] Building C object esp-idf/app_trace/CMakeFiles/__idf_app_trace.dir/gcov/gcov_rtio.c.obj
[94/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_buf.c.obj
[95/494] Building CXX object esp-idf/cxx/CMakeFiles/__idf_cxx.dir/cxx_guards.cpp.obj
[96/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_callbacks.c.obj
[97/494] Building C object esp-idf/app_trace/CMakeFiles/__idf_app_trace.dir/app_trace.c.obj
[98/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_hd_huffman_data.c.obj
[99/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_frame.c.obj
[100/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_debug.c.obj
[101/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_npn.c.obj
[102/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_helper.c.obj
[103/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_hd_huffman.c.obj
[104/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_mem.c.obj
[105/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_map.c.obj
[106/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_hd.c.obj
[107/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_option.c.obj
[108/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_http.c.obj
[109/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_outbound_item.c.obj
[110/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_rcbuf.c.obj
[111/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_pq.c.obj
[112/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_priority_spec.c.obj
[113/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_stream.c.obj
[114/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_version.c.obj
[115/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_queue.c.obj
[116/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_submit.c.obj
[117/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/port/http_parser.c.obj
[118/494] Building C object esp-idf/nghttp/CMakeFiles/__idf_nghttp.dir/nghttp2/lib/nghttp2_session.c.obj
[119/494] Building C object esp-idf/tcp_transport/CMakeFiles/__idf_tcp_transport.dir/transport_utils.c.obj
[120/494] Building C object esp-idf/esp-tls/CMakeFiles/__idf_esp-tls.dir/esp_tls.c.obj
[121/494] Building C object esp-idf/tcp_transport/CMakeFiles/__idf_tcp_transport.dir/transport_ws.c.obj
[122/494] Building C object esp-idf/esp-tls/CMakeFiles/__idf_esp-tls.dir/esp_tls_mbedtls.c.obj
[123/494] Building C object esp-idf/tcp_transport/CMakeFiles/__idf_tcp_transport.dir/transport_tcp.c.obj
[124/494] Building C object esp-idf/tcp_transport/CMakeFiles/__idf_tcp_transport.dir/transport_ssl.c.obj
[125/494] Building C object esp-idf/esp_http_client/CMakeFiles/__idf_esp_http_client.dir/lib/http_utils.c.obj
[126/494] Building C object esp-idf/tcp_transport/CMakeFiles/__idf_tcp_transport.dir/transport.c.obj
[127/494] Building C object esp-idf/esp_http_client/CMakeFiles/__idf_esp_http_client.dir/lib/http_header.c.obj
[128/494] Building C object esp-idf/esp_http_client/CMakeFiles/__idf_esp_http_client.dir/lib/http_auth.c.obj
[129/494] Building C object esp-idf/esp_http_client/CMakeFiles/__idf_esp_http_client.dir/esp_http_client.c.obj
[130/494] Building C object esp-idf/esp_http_server/CMakeFiles/__idf_esp_http_server.dir/src/httpd_main.c.obj
[131/494] Building C object esp-idf/esp_http_server/CMakeFiles/__idf_esp_http_server.dir/src/httpd_ws.c.obj
[132/494] Building C object esp-idf/esp_http_server/CMakeFiles/__idf_esp_http_server.dir/src/httpd_uri.c.obj
[133/494] Building C object esp-idf/esp_http_server/CMakeFiles/__idf_esp_http_server.dir/src/httpd_parse.c.obj
[134/494] Building C object esp-idf/ulp/CMakeFiles/__idf_ulp.dir/ulp.c.obj
[135/494] Building C object esp-idf/esp_http_server/CMakeFiles/__idf_esp_http_server.dir/src/httpd_sess.c.obj
[136/494] Building C object esp-idf/esp_http_server/CMakeFiles/__idf_esp_http_server.dir/src/httpd_txrx.c.obj
[137/494] Building C object esp-idf/esp_http_server/CMakeFiles/__idf_esp_http_server.dir/src/util/ctrl_sock.c.obj
[138/494] Building C object esp-idf/ulp/CMakeFiles/__idf_ulp.dir/ulp_macro.c.obj
[139/494] Linking CXX static library esp-idf\ulp\libulp.a
[140/494] Linking CXX static library esp-idf\esp_http_server\libesp_http_server.a
[141/494] Linking CXX static library esp-idf\esp_http_client\libesp_http_client.a
[142/494] Linking CXX static library esp-idf\tcp_transport\libtcp_transport.a
[143/494] Linking CXX static library esp-idf\esp-tls\libesp-tls.a
[144/494] Linking CXX static library esp-idf\nghttp\libnghttp.a
[145/494] Linking CXX static library esp-idf\app_trace\libapp_trace.a
[146/494] Linking CXX static library esp-idf\cxx\libcxx.a
[147/494] Linking CXX static library esp-idf\newlib\libnewlib.a
[148/494] Linking CXX static library esp-idf\freertos\libfreertos.a
[149/494] Linking CXX static library esp-idf\esp_timer\libesp_timer.a
[150/494] Linking CXX static library esp-idf\esp_common\libesp_common.a
[151/494] Linking CXX static library esp-idf\esp32\libesp32.a
[152/494] Linking CXX static library esp-idf\perfmon\libperfmon.a
[153/494] Linking CXX static library esp-idf\espcoredump\libespcoredump.a
[154/494] Linking CXX static library esp-idf\pthread\libpthread.a
[155/494] Linking CXX static library esp-idf\driver\libdriver.a
[156/494] Linking CXX static library esp-idf\esp_ringbuf\libesp_ringbuf.a
[157/494] Linking CXX static library esp-idf\heap\libheap.a
[158/494] Linking CXX static library esp-idf\log\liblog.a
[159/494] Linking CXX static library esp-idf\lwip\liblwip.a
[160/494] Linking CXX static library esp-idf\esp_wifi\libesp_wifi.a
[161/494] Linking CXX static library esp-idf\nvs_flash\libnvs_flash.a
[162/494] Linking CXX static library esp-idf\wpa_supplicant\libwpa_supplicant.a
[163/494] Linking CXX static library esp-idf\esp_event\libesp_event.a
[164/494] Linking CXX static library esp-idf\esp_netif\libesp_netif.a
[165/494] Linking CXX static library esp-idf\tcpip_adapter\libtcpip_adapter.a
[166/494] Linking CXX static library esp-idf\esp_eth\libesp_eth.a
[167/494] Linking CXX static library esp-idf\vfs\libvfs.a
[168/494] Linking CXX static library esp-idf\soc\soc\esp32\libsoc_esp32.a
[169/494] Linking CXX static library esp-idf\soc\libsoc.a
[170/494] Linking CXX static library esp-idf\esp_system\libesp_system.a
[171/494] Linking CXX static library esp-idf\spi_flash\libspi_flash.a
[172/494] Linking CXX static library esp-idf\app_update\libapp_update.a
[173/494] Linking CXX static library esp-idf\bootloader_support\libbootloader_support.a
[174/494] Linking CXX static library esp-idf\efuse\libefuse.a
[175/494] Linking CXX static library esp-idf\mbedtls\mbedtls\library\libmbedtls.a
[176/494] Linking CXX static library esp-idf\mbedtls\mbedtls\library\libmbedx509.a
[177/494] Linking CXX static library esp-idf\mbedtls\mbedtls\library\libmbedcrypto.a
[178/494] Generating x509_crt_bundle
FAILED: esp-idf/mbedtls/x509_crt_bundle
cmd.exe /C "cd /D D:\esp-vs\workspace\hello_world\build\esp-idf\mbedtls && d:\esp-vs.espressif\python_env\idf4.2_py3.8_env\Scripts\python.exe D:/esp-vs/esp-idf-42/esp-idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input D:/esp-vs/esp-idf-42/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"
gen_crt_bundle.py: Invalid certificate in D:/esp-vs/esp-idf-42/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem
Invalid certificate
ninja: build stopped: subcommand failed.

@ESP-Marius
Copy link
Collaborator

You shouldnt have to disable it, but havent been able to reproduce the error on my end.

Could do the following to help me debug it:

  • Do pip3 show cryptography and pip show cryptography in your terminal/cmd line before building and show me what it outputs.
  • Attach the file you have at D:/esp-vs/esp-idf-42/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem to your github comment

Thanks for your help!

@xuhongv
Copy link

xuhongv commented Jun 10, 2020

Hi @ESP-Marius ,this is above :

image

cacrt_all.zip

@xuhongv
Copy link

xuhongv commented Jun 10, 2020

  • I set the file UNIX ,good

image

@ESP-Marius
Copy link
Collaborator

@xuhongv Thanks, internally we also found some issues due to encoding. This should be fixed when commit: c39b373 is merged and synced to Github

@ESP-Marius
Copy link
Collaborator

Closed by c343323863c55f8e1

@imammashur
Copy link

Hello everyone, I still got the error. After setting the cert file to UNIX, it is still return an error. Does anybody know the solution? Thank you.

@Typoception
Copy link

same. im having the same error
Generating x509_crt_bundle
FAILED: esp-idf/mbedtls/x509_crt_bundle
cmd.exe /C "cd /D C:\Users\yahsa\Desktop\NTU\FYP\ESP_Workspace\blink\build\esp-idf\mbedtls && C:\Users\yahsa\esp.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:/Users/yahsa/esp/esp-idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input C:/Users/yahsa/esp/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"
gen_crt_bundle.py: Invalid certificate in C:/Users/yahsa/esp/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem
Invalid certificate
ninja: build stopped: subcommand failed.

anyone knows how to solve this?

@ingcicala
Copy link

same now with new IDF 4.3.1

[1/307] cmd.exe /C "cd /D C:\Users\ingfe\eclipse-workspace\esp32_eclipsetest\build\bootloader && C:\Espressif\ESP_Tool.espressif\tools\cmake\3.16.4\bin\cmake.exe --build ."
ninja: no work to do.
[2/305] cmd.exe /C "cd /D C:\Users\ingfe\eclipse-workspace\esp32_eclipsetest\build\esp-idf\mbedtls && python C:/Espressif/ESP_idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input C:/Espressif/ESP_idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"
FAILED: esp-idf/mbedtls/x509_crt_bundle
cmd.exe /C "cd /D C:\Users\ingfe\eclipse-workspace\esp32_eclipsetest\build\esp-idf\mbedtls && python C:/Espressif/ESP_idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input C:/Espressif/ESP_idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"
gen_crt_bundle.py: Invalid certificate in C:/Espressif/ESP_idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem
Invalid certificate
ninja: build stopped: subcommand failed.

@RobertWCarey
Copy link

Same issue. ESP-IDF v4.3.1 running ubuntu 20.04.
cacrt_all.zip

I was able to build by disabling the "certificate bundle" in the menuconfig as mentioned above.

[ 70%] Linking CXX static library libmbedtls.a
[ 70%] Built target mbedtls
[ 70%] Generating x509_crt_bundle
gen_crt_bundle.py: Invalid certificate in /home/rob/swdev/esp-idf-v4.3.1/components/mbedtls/esp_crt_bundle/cacrt_all.pem
Invalid certificate
make[2]: *** [esp-idf/mbedtls/CMakeFiles/__idf_mbedtls.dir/build.make:67: esp-idf/mbedtls/x509_crt_bundle] Error 2
make[1]: *** [CMakeFiles/Makefile2:2546: esp-idf/mbedtls/CMakeFiles/__idf_mbedtls.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
make failed with exit code 2
% pip3 show cryptography                                                                                                                                                                                                                                                
Name: cryptography
Version: 2.8
Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
Home-page: https://github.com/pyca/cryptography
Author: The cryptography developers
Author-email: cryptography-dev@python.org
License: BSD or Apache License, Version 2.0
Location: /usr/lib/python3/dist-packages
Requires: 
Required-by: 
 ~
% pip show cryptography                                                                                                                                                                                                                                                 
Name: cryptography
Version: 2.8
Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
Home-page: https://github.com/pyca/cryptography
Author: The cryptography developers
Author-email: cryptography-dev@python.org
License: BSD or Apache License, Version 2.0
Location: /usr/lib/python3/dist-packages
Requires: 
Required-by: 

@jipi
Copy link

jipi commented Sep 30, 2021

i tried converting the cacrt_all.pem file to utf-8 encodingbut it says cannot convert. there seems to be a line with this (line 1149)
NetLock Arany (Class Gold) Főtanúsítvány

$ iconv -f US-ASCII -t UTF-8 cacrt_all.pem > cacrt_all.pem.utf8
iconv: cacrt_all.pem:1149:28: cannot convert

@tomasmcguinness
Copy link

I found this - #7621

The certificates have expired today. This explains how to disable the certificates.

@electrocucaracha
Copy link
Contributor

To be more precisely, the EC-ACC certificate is invalid. It works after I removed it.

@andy31415
Copy link

A possible hackish workaround for us was to downgrade the cryptography package (35.0.0 was just released, the previous version seems to 'work'):

/opt/espressif/tools/python_env/idf4.3_py3.9_env/bin/pip uninstall -y cryptography 
/opt/espressif/tools/python_env/idf4.3_py3.9_env/bin/pip install cryptography==3.4.8 

substituting the correct path (it seems esp tools at least for us do not use the host pip packages directly)

@Fl4v
Copy link

Fl4v commented Oct 1, 2021

Thanks @andy31415, it worked for me.

@electrocucaracha
Copy link
Contributor

To be more precisely, the EC-ACC certificate is invalid. It works after I removed it.

The EC-ACC certificate contains a negative serial number:

$ openssl x509 -in ec-acc.pem -text                                                                                               
Certificate:                                                    
    Data:                                                       
        Version: 3 (0x2)                                        
        Serial Number:                                          
             (Negative)11:d4:c2:14:2b:de:21:eb:57:9d:53:fb:0c:22:3b:ff
        Signature Algorithm: sha1WithRSAEncryption

According the the cryptography release doc those values are prohibited.

@bljptrpl
Copy link

bljptrpl commented Oct 2, 2021

Hello guys, I am also experiencing the same issue. I attached my compile code.
I am on a Windows 10 machine, and reinstalled Eclipse twice (fully). Nothing works. Hope I could receive advice on how to fix the bug.

663 cert error.txt

@italocjs
Copy link

italocjs commented Oct 2, 2021

Hello guys, I am also experiencing the same issue. I attached my compile code. I am on a Windows 10 machine, and reinstalled Eclipse twice (fully). Nothing works. Hope I could receive advice on how to fix the bug.

663 cert error.txt

This can help.
https://user-images.githubusercontent.com/9244531/135537815-125dc605-1789-4d8d-84ea-1423b9b31b76.png

Similar issues:
#7621 , #7624 , #7631

@electrocucaracha
Copy link
Contributor

I have submitted a fix here

@volkanunal
Copy link

I have submitted a fix here

You saved my day!

@bljptrpl
Copy link

bljptrpl commented Oct 4, 2021

Hello guys, I am also experiencing the same issue. I attached my compile code. I am on a Windows 10 machine, and reinstalled Eclipse twice (fully). Nothing works. Hope I could receive advice on how to fix the bug.
663 cert error.txt

This can help. https://user-images.githubusercontent.com/9244531/135537815-125dc605-1789-4d8d-84ea-1423b9b31b76.png

Similar issues: #7621 , #7624 , #7631

Is there a way to do this on Eclipse IDE? I am not yet familiar with VS code and mid project.

@italocjs
Copy link

italocjs commented Oct 4, 2021

Hello guys, I am also experiencing the same issue. I attached my compile code. I am on a Windows 10 machine, and reinstalled Eclipse twice (fully). Nothing works. Hope I could receive advice on how to fix the bug.
663 cert error.txt

This can help. https://user-images.githubusercontent.com/9244531/135537815-125dc605-1789-4d8d-84ea-1423b9b31b76.png
Similar issues: #7621 , #7624 , #7631

Is there a way to do this on Eclipse IDE? I am not yet familiar with VS code and mid project.

IFAIK the sdkconfig file is the same, you can edit it with any text editor, or run a command on esp-idf cmd that opens a configuration GUI, not sure which command as i never used it.

you can also download the changed file from this commit and paste it into you pc. it will also fix this

@bljptrpl
Copy link

bljptrpl commented Oct 5, 2021

Hello guys, I am also experiencing the same issue. I attached my compile code. I am on a Windows 10 machine, and reinstalled Eclipse twice (fully). Nothing works. Hope I could receive advice on how to fix the bug.
663 cert error.txt

This can help. https://user-images.githubusercontent.com/9244531/135537815-125dc605-1789-4d8d-84ea-1423b9b31b76.png
Similar issues: #7621 , #7624 , #7631

Is there a way to do this on Eclipse IDE? I am not yet familiar with VS code and mid project.

IFAIK the sdkconfig file is the same, you can edit it with any text editor, or run a command on esp-idf cmd that opens a configuration GUI, not sure which command as i never used it.

you can also download the changed file from this commit and paste it into you pc. it will also fix this

So I ended up finding the sdkconfig file and made changes to only check the basic certificates and it compiled! So happy. Thank you for the help!

image

My next question would be, how to save my new settings so I don't have to change the sdk file every time I want to compile?

@Ro8ch
Copy link

Ro8ch commented Oct 5, 2021

Hi Guys,
This was not obvious to me at first but this is what I did to fix this error on Ubuntu:

  1. nano into sdkconfig file $ nano sdkconfig
  2. Find "Certificate Bundle" section
  3. Comment out "CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL" (add a "#" in front)
  4. Uncomment "CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN" (remove the "#")
  5. Make sure the line displays "CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN=y"
  6. Save
  7. Build again (idf.py build)

That should solve the issue without having to check all pip cryptography stuff.

Hope this helps someone.

@farisikhmal
Copy link

Hi Guys, This was not obvious to me at first but this is what I did to fix this error on Ubuntu:

1. nano into sdkconfig file $ nano sdkconfig

2. Find "Certificate Bundle" section

3. Comment out "CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL" (add a "#" in front)

4. Uncomment "CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN" (remove the "#")

5. Make sure the line displays "CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN=y"

6. Save

7. Build again (idf.py build)

That should solve the issue without having to check all pip cryptography stuff.

Hope this helps someone.

THANKS DUDE, IT WORKS !!!

@mishaturnbull
Copy link

Hi Guys, This was not obvious to me at first but this is what I did to fix this error on Ubuntu:

1. nano into sdkconfig file $ nano sdkconfig

2. Find "Certificate Bundle" section

3. Comment out "CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL" (add a "#" in front)

4. Uncomment "CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN" (remove the "#")

5. Make sure the line displays "CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN=y"

6. Save

7. Build again (idf.py build)

That should solve the issue without having to check all pip cryptography stuff.

Hope this helps someone.

Works for me too!! Thanks!!

@ZeRico
Copy link

ZeRico commented Oct 9, 2021

Hi Guys, This was not obvious to me at first but this is what I did to fix this error on Ubuntu:

  1. nano into sdkconfig file $ nano sdkconfig
  2. Find "Certificate Bundle" section
  3. Comment out "CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL" (add a "#" in front)
  4. Uncomment "CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN" (remove the "#")
  5. Make sure the line displays "CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN=y"
  6. Save
  7. Build again (idf.py build)

That should solve the issue without having to check all pip cryptography stuff.

Hope this helps someone.

hi, I followed the steps but when I build again, the sdkconfig is overwritten and the line with CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL comes back to CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL=y :-/

any hints ?
cheers

@Ro8ch
Copy link

Ro8ch commented Oct 9, 2021

Hi @ZeRico ,
Did you make sure to save the file within Nano.
It's not mentioned at the bottom of the screen when in nano but ctrl+S still works.

Try that before closing up and right after reopen the file and confirm if the file changed.

Let me know if this does not work then I can help look for some other way.

@williamsokol
Copy link

@ZeRico I had same issue until if fixed the spacing at the beginning to look more like the other lines

I was doing:

#CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL=y
 CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN=y

I changed it to:

# CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL=y
CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN=y

ewpa added a commit to ewpa/esp-idf that referenced this issue Oct 10, 2021
@Sreedharbot
Copy link

@williamsokol

Thanks for point it out.. It works !!

@ZeRico
Copy link

ZeRico commented Oct 11, 2021

hi ther!
finally I managed to make I work!

probably that space before the sentence was the issue.
thanks everybody for you help

@andershedberg
Copy link

For anyone using Visual Code on Win10 and following the Getting Started guide, and ends up on this page :-)

Select: View->Command Palette
Enter: ESP-IDF SDK Configuration Editor (menuconfig)
In the search box on the menuconfig page, enter: "Certificate Bundle"
Change setting for "Default certificate bundle options" from "Use the full default certificate bundle" to "Use only the most common certificates from the default bundles"

Voila! Thanks all for the above suggestions!

@sarikh
Copy link

sarikh commented Oct 27, 2021

@Ro8ch I cant find sdkConfig file, is it possible I dont have it?

@moefear85
Copy link

this problem suddenly appeared for me today

@miLORD1337
Copy link

You can do it with idf.py menuconfig as follows:
Navigate to Component config --> mbedTLS --> Certificate Bundle --> Default certificate bundle options and choose use only most common certificates, then build again. Good luck!

@LucasEstevo
Copy link

Para qualquer pessoa que use o Visual Code no Win10 e siga o guia de primeiros passos e acabe nesta página :-)

Selecione: Exibir-> Paleta de Comandos Digite: ESP-IDF SDK Configuration Editor (menuconfig) Na caixa de pesquisa da página menuconfig, digite: "Pacote de certificado" Altere a configuração de "Opções de pacote de certificado padrão" de "Usar o pacote de certificado padrão completo" para "Usar apenas os certificados mais comuns dos pacotes padrão"

Voila! Obrigado a todos pelas sugestões acima!

Segui esta recomendação e funcionou perfeitamente, muito obrigado!

@yupanqui
Copy link

You can do it with idf.py menuconfig as follows: Navigate to Component config --> mbedTLS --> Certificate Bundle --> Default certificate bundle options and choose use only most common certificates, then build again. Good luck!

@yupanqui
Copy link

@miLORD1337 Well done man, your hint is the only that works out of Eclipse or VSCode. Of course the editing of the file "sdkconfig" is no sense as it is clearly stated the file is automatically created each time by the framework, so the patch is overridden.
Thanks a lot !!!

@connorfuhrman
Copy link

connorfuhrman commented Nov 16, 2021

Experienced this issue using ESP-MDF (https://github.com/espressif/esp-mdf/tree/cf502740f5a6c82a0dc3059e7591c262795f70b2) with ESP-IDF 4.3.1. Described fix by @miLORD1337 worked for me as well on Ubuntu w/out an IDE.

What are the side effects of “use only most recent certificates”?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests