Page 1 of 1

WiFiClientSecure Memory allocation failed

Posted: Mon Jul 13, 2020 2:42 pm
by VircomSheep
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!

Re: WiFiClientSecure Memory allocation failed

Posted: Wed Jul 15, 2020 1:38 am
by martinius96
Without code, ESP Arduino Core version, used board... We are unable to help

Re: WiFiClientSecure Memory allocation failed

Posted: Sat Sep 26, 2020 4:05 pm
by davidbetan2360
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?

Re: WiFiClientSecure Memory allocation failed

Posted: Thu Oct 15, 2020 8:15 pm
by fertioga
i have this problem too. Somebody got solve?