AWS IoT Subscribe/Publish example problem

ltbeck
Posts: 9
Joined: Sat Nov 10, 2018 4:21 pm

AWS IoT Subscribe/Publish example problem

Postby ltbeck » Thu Nov 15, 2018 2:52 pm

I can not get the example to work with any of Amazon's root certificates including the one provided in the example. I can get the example to work by setting:

mqttInitParams.isSSLHostnameVerify = false;

I've tried several things including loading from SD card, etc. Any tips to debug?

ESP_Mahavir
Posts: 190
Joined: Wed Jan 24, 2018 6:51 am

Re: AWS IoT Subscribe/Publish example problem

Postby ESP_Mahavir » Fri Nov 16, 2018 9:02 am

I can not get the example to work with any of Amazon's root certificates including the one provided in the example.

Can you please provide detailed log with ESP-IDF version/commit that you tried with?

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: AWS IoT Subscribe/Publish example problem

Postby chegewara » Fri Nov 16, 2018 10:02 am

This is root cert i am using to connect with aws amazon service:

Code: Select all

-----BEGIN CERTIFICATE-----
MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF
ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6
b24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTEL
MAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv
b3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4gHHKeNXj
ca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgHFzZM
9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qw
IFAGbHrQgLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6
VOujw5H5SNz/0egwLX0tdHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L
93FcXmn/6pUCyziKrlA4b9v7LWIbxcceVOF34GfID5yHI9Y/QCB/IIDEgEw+OyQm
jgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
AYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3DQEBCwUA
A4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDI
U5PMCCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUs
N+gDS63pYaACbvXy8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vv
o/ufQJVtMVT8QtPHRh8jrdkPSHCa2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU
5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2xJNDd2ZhwLnoQdeXeGADbkpy
rqXRfboQnoZsG4q5WTP468SQvvG5
-----END CERTIFICATE-----
Sorry, but for some reason code tag does not want to break first line and last 2 lines.

ESP_Sprite
Posts: 9769
Joined: Thu Nov 26, 2015 4:08 am

Re: AWS IoT Subscribe/Publish example problem

Postby ESP_Sprite » Mon Nov 19, 2018 2:30 am

Moved to the ESP32 IDF subforum.

Who is online

Users browsing this forum: igormoo and 130 guests