wifi mqtt ssl example certificate error

jaimits
Posts: 2
Joined: Mon Apr 12, 2021 9:28 am

wifi mqtt ssl example certificate error

Postby jaimits » Mon Apr 12, 2021 9:40 am

Hi;
I am facing issue in WIFI-MQTT with ssl. I already generated client certificate and key. I am using example given in esp idf(\esp-idf(examples\protocols\mqtt\ssl).when i try to run code i get below error.

E (7204) esp-tls-mbedtls: mbedtls_x509_crt_parse returned -0x2180
E (7204) esp-tls-mbedtls: Failed to set client pki context
E (7204) esp-tls-mbedtls: Failed to set client configurations
E (7214) esp-tls: create_ssl_handle failed
E (7214) esp-tls: Failed to open new connection
E (7214) TRANS_SSL: Failed to open a new connection
E (7224) MQTT_CLIENT: Error transport connect

can someone guide me what i am doing wrong ???

dastoned
Posts: 50
Joined: Fri May 29, 2020 2:52 pm

Re: wifi mqtt ssl example certificate error

Postby dastoned » Tue Apr 13, 2021 10:08 am

Looks like the certificate parsing fails. Most likely the certificate you used is not in correct format.

Who is online

Users browsing this forum: No registered users and 266 guests