https_get_request_using_crt_bundle主要使用crt_bundle_attach方式,该方式是ESP x509 证书捆绑包 API 提供了一种简单的方法来包含用于 TLS 服务器验证的自定义 x509 根证书捆绑包。捆绑包主要过menuconfig配置完成的,然后通过cmake生成捆绑包并将其嵌入。 在配置选项中有以下几项需要配置: CONFIG_MBEDTLS_CERTIFICATE...
# CONFIG_MBEDTLS_SSL_VARIABLE_BUFFER_LENGTH is not set # CONFIG_MBEDTLS_X509_TRUSTED_CERT_CALLBACK is not set # CONFIG_MBEDTLS_SSL_CONTEXT_SERIALIZATION is not set CONFIG_MBEDTLS_SSL_KEEP_PEER_CERTIFICATE=y # end of mbedTLS v2.28.x related # # Certificate Bundle # CONFIG_MBEDTLS_CERTIFICATE_...
使用tm结构体格式,设置定时时间,可实现类似crontab的定时任务 // ./main/https_request_example_main.c/**/staticvoidhttps_request_task(void*pvparameters){ESP_LOGI(HTTPS_TAG,"Start https_request example");#if CONFIG_MBEDTLS_CERTIFICATE_BUNDLE && CONFIG_EXAMPLE_USING_ESP_TLS_MBEDTLStime_tnow;structtm*...
Invalid certificate ninja: build stopped: subcommand failed. ninja failed with exit code 1 解決办法: 执行idf.py menuconfig 1. 在配置菜单中禁用此项 (Top) > Component config > mbedTLS > Certificate Bundle->Enable trusted root certificate bundle 参考:https://github.com/espressif/esp-idf/issues/766...
CONFIG_MBEDTLS_CERTIFICATE_BUNDLE && CONFIG_EXAMPLE_USING_ESP_TLS_MBEDTLS static void https_get_request_using_crt_bundle(void); #endif static void obtain_time(void); static void https_request_task(void *pvparameters) { ESP_LOGI(HTTPS_TAG, "Start https_request example"); #if CONFIG_MBEDTLS_...
ESP_LOGI(HTTPS_TAG,"Start https_request example");#ifCONFIG_MBEDTLS_CERTIFICATE_BUNDLE && CONFIG_EXAMPLE_USING_ESP_TLS_MBEDTLStime_tnow;structtm*timeinfo;while(1) {// 获取当前时间的时间戳now = time(NULL);// 将时间戳转换为当地时间结构timeinfo = localtime(&now);// 此处设置为每天 2:30:...
Re: esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x6C00 PostbyESP_harshal»Tue Aug 06, 2024 4:05 am Hi @askash kadam, I think you should use the Code:Select all .crt_bundle_attach element for the config to attach the cert bundle instead of ...
CONFIG_WPA_MBEDTLS_CRYPTO=y # CONFIG_WPA_DEBUG_PRINT is not set # CONFIG_WPA_TESTING_OPTIONS is not set # CONFIG_WPA_WPS_WARS is not set # CONFIG_WPA_11KV_SUPPORT is not set # end of Supplicant # # Bluetooth # CONFIG_BT_ENABLED=y CONFIG_BT_CTRL_ESP32=y # # ...
I donk know what bundle size is in example from esp-idf, but 209kB may be too big for esp32. Yes, it was useful for me, and I did as follows: Remove overwhelmed cert bundle from project In menuconfig->Component config->mbedTLS->Certificate bundle, I set it not to use default cert...
CONFIG_ESP_TLS_USING_MBEDTLS=y # CONFIG_ESP_TLS_USE_SECURE_ELEMENT is not set # CONFIG_ESP_TLS_CLIENT_SESSION_TICKETS is not set # CONFIG_ESP_TLS_SERVER is not set # CONFIG_ESP_TLS_PSK_VERIFICATION is not set # CONFIG_ESP_TLS_INSECURE is not set # end of ESP-TLS # ...