MQTT Broker Integration with AWS IoT: Seeking Assistance

Hey everyone, I’m trying to integrate my Home Assistant setup with an external MQTT broker hosted on AWS IoT. While I’ve managed to connect to the broker using certificates, I’m encountering some issues that I can’t seem to resolve. I’m hoping someone here might have some insights or suggestions!

Here’s what I’ve done so far:

  • Configured the MQTT settings in my configuration.yaml with the correct broker URL, port, and certificate paths.
  • Verified the certificates and broker details using a local MQTT client, which worked perfectly.
  • Ensured that the Home Assistant container has the correct permissions and file access for the certificates.

Despite these steps, I’m running into an SSL error when Home Assistant tries to connect:

ssl.SSLError: [SSL] PEM lib (_ssl.c:3880)

I suspect this might be related to the certificate chain, but I’m not entirely sure. Has anyone else encountered this issue or have tips on how to troubleshoot it further? I’m eager to get this working as I plan to use the MQTT broker to push all entity state changes to AWS for longer-term data persistence and analysis.

Any help or advice would be greatly appreciated! Thanks in advance for your time and support.