!
Notes
Example
5.2.9.
AT+CIPSSLCCONF—Set Configuration of SSL Client *
Set
Command
Response
Parameters
Note
Example
Espressif
SSL connection needs much memory. Lack of available memory may cause system
•
reboot.
Users are recommended to enable this function when establishing a TCP connection.
•
AT+CIPSTART="SSL","iot.espressif.cn",8443
1. F
or single connection: (
AT+CIPMUX=0
AT+CIPSSLCCONF=<type>,<cert_key_ID>,<CA_ID>
2. For m
ultiple connections: (
AT+CIPSSLCCONF=<link ID>,<type>,<cert_key_ID>,<CA_ID>
OK
[<link_id>]: ID of the connection (0~4) for multiple connections. If it is omitted in multi-
•
connections mode, then the configuration will take effect on all connections.
•
<type>:
‣ 0: no authentication
‣ 1: loading cert and private key for the authentication server may request
‣ 2: loading CA to authenticate server
‣ 3: bi-directional authentication, both SSL server and client will authenticate certificate of
each other
<cert_key_ID>: The ID of the certificate, starting from 0. ESP32 AT supports multiple
•
certificates. On how to generate the bin file, please refer to
readme.md.
<CA_ID>: The CA ID that starts from 0. ESP32 AT supports multiple certificates. On how to
•
generate the bin file, please refer to
Please call this command before establishing the SSL connection, if it is needed.
•
This configuration will be saved in the NVS area of flash. And if a SSL connection is saved
•
in flash by command AT+SAVETRANSLINK, the SSL connection will be established
according to this configuration in next start-up.
AT+CIPMUX=1 // enable multiple connections
AT+CIPSSLCCONF=1,3,0,0 // to set the NO.1 link, loading certificates (with ID 0) for
authentication.
29 97
!
5. TCP/IP-Related AT Commands
)
AT+CIPMUX=1
)
PKI Bin
in esp32-at/tools/readme.md.
/!
PKI Bin
in
esp32-at/tools/
2019.06
Need help?
Do you have a question about the ESP32 and is the answer not in the manual?
Questions and answers