copercini / esp8266-aws_iot

Some examples using x.509 certificates and TLSv1.2 under Arduino IDE
117 stars 50 forks source link

Chain could not be linked to a trust anchor. #18

Open iotics opened 5 years ago

iotics commented 5 years ago

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

izaiasemjr commented 5 years ago

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 -out ca.der -outform DER like shown in first page of this copercini's project.

Vikhyat-Chauhan commented 4 years ago

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 -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.

DCTECHS2015 commented 3 years ago

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

anwarminarso commented 8 months ago

I have the same issue. Any update?