Giter Club home page Giter Club logo

Comments (5)

ravibhagavandas avatar ravibhagavandas commented on July 18, 2024

Hi @laukik-hase

I tried with the commit b3fde23 on main branch, but could not reproduce the issue. Please find attached logs for MQTT Mutual Auth demo on ESP32 WROOM board.

mqtt_success_logs.txt

7 601 [iot_thread] ERROR: TLS handshake failed trying to connect. SSL - The connection indicated an EOF :
8 601 [iot_thread] TLS_Connect fail (0x7280, a10y2vqnezxqbn-ats.iot.us-east-1.amazonaws.com)

The error 0x7280 in your log indicates a terminated connection by the server. Can you confirm if the certificate used is valid and registered with AWS IoT ? Also could you check if the policy attached to the certificate has sufficient permissions?

from amazon-freertos.

laukik-hase avatar laukik-hase commented on July 18, 2024

Hello, @ravibhagavandas!

I have checked the AWS IoT configuration (thing, certificate and policy attached) and it is correct.
I am confused why a configuration would work at 8e69ca7 but fail at a commit just after it.

(Note: The demo also works on the 202203.00 release with the same config)

Apart from setting the appropriate parameters in aws_clientcredential.h and aws_clientcredential_keys.h, is anything else required for the mqtt_demo_mutual_auth on the latest main branch?

from amazon-freertos.

ravibhagavandas avatar ravibhagavandas commented on July 18, 2024

Apart from setting the appropriate parameters in aws_clientcredential.h and aws_clientcredential_keys.h, is anything else required for the mqtt_demo_mutual_auth on the latest main branch?

Only these configuration files needs to be modified for the demo.

Could you enable mbedtls debug logs and share the logs for TLS handshake failure?

from amazon-freertos.

laukik-hase avatar laukik-hase commented on July 18, 2024

PFA the Mbed TLS debug logs: mqtt_fail.log

On another note, increasing the mqttexampleTRANSPORT_SEND_RECV_TIMEOUT_MS to 1000 in mqtt_demo_mutual_auth.c makes the example run as expected.

from amazon-freertos.

n9wxu avatar n9wxu commented on July 18, 2024

We have seen changes to the timeout making a big difference in different regions.

from amazon-freertos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.