EasyManua.ls Logo

Espressif Systems ESP - Protocols; Esp-Tls

Default Icon
191 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 4. Software framework
Does ESP32 support PCI-E protocol?
No, it doesnt.
4.5 Protocols
4.5.1 ESP-TLS
When testing RTOS SDK mqtt/ssl_mutual_auth with ESP8266, the server connection failed. Why?
The failure of SSL connection may due to insu󰝚cient memory of ESP8266.
Please use the master version of ESP8266-RTOS-SDK to test this example, since it supports dynamic memory
allocation in menucon󰝘g so as to reduce the usage of memory peak. The speci󰝘c action is: menucon󰝘g ->
Component config -> mbedTLS -> (type Yto enable) Using dynamic TX /RX buffer ->
(typeYto enable) Free SSL peer certificate after its usage -> (typeYto enable)
Free certificate, key and DHM data after its usage.
Can ESP HTTPS skip the server certicate check?
Yes, if you enable the following options in menucon󰝘g.
Menu path: (Top) -> Component config -> ESP-TLS -> Allow potentially in-
secure options
Menu path: (Top) -> Component config -> ESP-TLS -> Allow potentially in-
secure options -> Skip server certificate verification by default
Besides, make sure that the cert_pem member variable is not set in the esp_http_client_config_t
structure. Otherwise, the server certi󰝘cate will still be veri󰝘ed with this CA certi󰝘cate.
If you want to test HTTP OTA at the same time, you need to enable the Menu path: (Top) -> Compo-
nent config -> ESP HTTPS OTA -> Allow HTTP for OTA option in menucon󰝘g.
How to set the esp_tls_conn_read API in ESP-TLS to non-blocking mode? Or is there any other way
to implement non-blocking?
You can set non_block to true in the esp_tls_cfg_t structure in esp_tls.h to achieve non-blocking.
Alternatively, you can call esp_transport_connect_async to achieve non-blocking.
What are the TLS versions supported by ESP-IDF?
The recommended TLS protocol in ESP-IDF is the Mbed TLS protocol.
ESP-IDF v5.0 and later no longer support SSL 3.0, TLS 1.0 and TLS 1.1, but only support TLS 1.2 and TLS
1.3.
Espressif Systems 90
Submit Document Feedback
Release master

Table of Contents