Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iotics opened this issue Apr 6, 2019 · 4 comments
Open

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

iotics opened this issue Apr 6, 2019 · 4 comments

Comments

@iotics
Copy link

iotics commented Apr 6, 2019

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
Copy link

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.

@Vikhyat-Chauhan
Copy link

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.

@DCTECHS2015
Copy link

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
Copy link

I have the same issue. Any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants