ESP32的 openssl_client

Marco_ma
Posts: 4
Joined: Thu Dec 24, 2020 1:01 pm

ESP32的 openssl_client

Postby Marco_ma » Fri Dec 25, 2020 2:59 pm

问一下ESP32的demo(openssl_client) ,看了这个工程没有发现使用到证书的地方,有点疑问(mbedtls都用了证书),
openssl这个是不用证书,还是其它的方式,链接结果 请求无效 ,麻烦大神看一下
工程demo 路径
esp-idf\examples\protocols\openssl_client


I (2585) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (3145) esp_netif_handlers: example_connect: sta ip: 192.168.222.108, mask: 255.255.255.0, gw: 192.168.222.253
I (3145) example_connect: Got IPv4 event: Interface "example_connect: sta" address: 192.168.222.108
I (3155) example_connect: Connected to example_connect: sta
I (3155) example_connect: - IPv4 address: 192.168.222.108
I (3165) openssl_example: OpenSSL demo thread start OK
I (3175) openssl_example: get target IP address
I (3195) openssl_example: OK
I (3195) openssl_example: 36.152.44.96
I (3195) openssl_example: create SSL context ......
I (3195) openssl_example: OK
I (3205) openssl_example: create socket ......
W (3205) wifi:<ba-add>idx:1 (ifx:0, 48:0e:ec:87:09:e9), tid:0, ssn:1, winSize:64
I (3215) openssl_example: OK
I (3215) openssl_example: bind socket ......
I (3225) openssl_example: OK
I (3225) openssl_example: socket connect to remote www.baidu.com ......
I (3245) openssl_example: OK
I (3245) openssl_example: create SSL ......
I (3255) openssl_example: OK
I (3255) openssl_example: SSL connected to www.baidu.com port 443 ......
I (4035) openssl_example: OK
I (4035) openssl_example: send https request to www.baidu.com port 443 ......
I (4035) openssl_example: OK
I (4055) openssl_example: HTTP/1.1 400 Bad Request


I (4055) openssl_example: totally read 28 bytes data from www.baidu.com ......

Who is online

Users browsing this forum: No registered users and 115 guests