ExploreEmbedded / Hornbill-Examples

89 stars 171 forks source link

Error parsing root-ca #15

Open trademark18 opened 6 years ago

trademark18 commented 6 years ago

I've substituded my certs in the .c file per the instructions (including \n\ at end of lines) but I'm getting a runtime error from the esp32 saying that it had an error parsing the root-ca.

I have verified that the cert is correct, so that's not it.

Here's the error: E (14239) aws_iot: failed! mbedtls_x509_crt_parse returned -0x2180 while parsing root cert

Thanks!

0xBABA commented 4 years ago

Having the same issue. did you ever figure this out?

maxcarvajal14 commented 4 years ago

Also having this issue. Any solution?

Nakul93 commented 4 years ago

Check your policy. I also had the same issue then I updated my policy like this,

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "iot:Connect", "Resource": "" }, { "Effect": "Allow", "Action": [ "iot:Publish", "iot:Subscribe", "iot:Receive" ], "Resource": "" } ] }

Now its working!!!