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

Chain could not be linked to a trust anchor.

iotics opened this issue · comments

Hello, @copercini .
I have followed each instructions you mentioned in READ.md, but still having an issue to connect with AWS via mqtt. After successfully loaded all 3 certs by SPIFFS, it shows "WiFiClientSecure SSL error: Chain could not be linked to a trust anchor."
Is that an issue from my side or from AWS cloud..? How to solve it..?
I am attaching a S.shot for reference. Guide me please. Thanks in advance.
mqtt error AWS

Hello, on my case, I just download root ca (Amazon Root CA 1) for cliente-server validation and I embeded it to my esp8266-01 (thanks @gbassan-br). For this, just uncomment part of code related to load ca file. To transform Amazon Root CA 1 to .der use:

openssl x509 -in <your_rootCA> -out ca.der -outform DER
like shown in first page of this copercini's project.

I am going through the same issue, any suggestions or help will be much appreciated.

Hello, on my case, I just download root ca (Amazon Root CA 1) for cliente-server validation and I embeded it to my esp8266-01 (thanks @gbassan-br). For this, just uncomment part of code related to load ca file. To transform Amazon Root CA 1 to .der use:

openssl x509 -in <your_rootCA> -out ca.der -outform DER
like shown in first page of this copercini's project.

please if you could explain it any better in a step wise format.

When you connect the client, you have to change the name of the Device:

if (client.connect("CHANGE_THIS_IT_HAS_TO_BE_DIFFERENT_FOR_EACH_DEVICE"))

I use the MAC Address to change it dynamically

I have the same issue. Any update?