WiFiClientSecure Memory allocation failed

VircomSheep
Posts: 2
Joined: Thu Jul 25, 2019 12:27 pm

WiFiClientSecure Memory allocation failed

Postby VircomSheep » Mon Jul 13, 2020 2:42 pm

Hello,
when I try to connect to the MQTT broker with WiFiClient Secure and PubSubClient, sometimes I get this error:
[E][ssl_client.cpp:33] _handle_error(): [start_ssl_client():199]: (-76) UNKNOWN ERROR CODE (004C)
[E][WiFiClientSecure.cpp:132] connect(): start_ssl_client: -76
Failed. Error state=-2[E][ssl_client.cpp:33] _handle_error(): [start_ssl_client():199]: (-16) BIGNUM - Memory allocation failed
[E][WiFiClientSecure.cpp:132] connect(): start_ssl_client: -16
Failed. Error state=-2[E][ssl_client.cpp:33] _handle_error(): [start_ssl_client():199]: (-16) BIGNUM - Memory allocation failed
[E][WiFiClientSecure.cpp:132] connect(): start_ssl_client: -16
Failed. Error state=-2[E][ssl_client.cpp:33] _handle_error(): [start_ssl_client():199]: (-9984) X509 - Certificate verification failed, e.g. CRL, CA or signature check failed
[E][WiFiClientSecure.cpp:132] connect(): start_ssl_client: -9984


The certificates are correct and I habe ~120k free RAM. Can anybody tell me if that is a memory problem or something else?
Thank you!

martinius96
Posts: 33
Joined: Thu Dec 13, 2018 1:39 am

Re: WiFiClientSecure Memory allocation failed

Postby martinius96 » Wed Jul 15, 2020 1:38 am

Without code, ESP Arduino Core version, used board... We are unable to help

davidbetan2360
Posts: 1
Joined: Sat Sep 26, 2020 3:59 pm

Re: WiFiClientSecure Memory allocation failed

Postby davidbetan2360 » Sat Sep 26, 2020 4:05 pm

I have same problem, with library BLE and using certs SSL in SPIFFS, if I dont use BLE, then mqtt and ssl works fine

with BLE library and pubsubclient mqtt SSL:

[E][ssl_client.cpp:33] _handle_error(): [start_ssl_client():199]: (-10368) X509 - Allocation of memory failed
[E][WiFiClientSecure.cpp:133] connect(): start_ssl_client: -10368

it is posible use BLE with MQTT SSL or NOT?

fertioga
Posts: 2
Joined: Thu Oct 15, 2020 8:09 pm

Re: WiFiClientSecure Memory allocation failed

Postby fertioga » Thu Oct 15, 2020 8:15 pm

i have this problem too. Somebody got solve?

Who is online

Users browsing this forum: Baidu [Spider] and 65 guests