copercini / esp8266-aws_iot

Some examples using x.509 certificates and TLSv1.2 under Arduino IDE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'class BearSSL::WiFiClientSecure' has no member named 'loadCertificate'

Prabindas001 opened this issue · comments

I am getting this error, I tried several things but couldn't get it to work. any help will be appreciated.
Thanks

I have the same error:
I using board 8266 version 3.0.2, and PubSubCliente version 2.8.0

mqtt_x509_DER:124:17: error: 'class BearSSL::WiFiClientSecure' has no member named 'loadCertificate'
124 | if (espClient.loadCertificate(cert))
| ^~~~~~~~~~~~~~~
mqtt_x509_DER:139:17: error: 'class BearSSL::WiFiClientSecure' has no member named 'loadPrivateKey'
139 | if (espClient.loadPrivateKey(private_key))
| ^~~~~~~~~~~~~~
exit status 1
'class BearSSL::WiFiClientSecure' has no member named 'loadCertificate'