MQTT Client - CA Certificate Verification Failure

Hello,

I’ve been at this for hours and unable to figure out how to authenticate a CA certificate against an MQTT broker using the mqtt_client library. One trivial task was learning how to embed text files with platform IO which seems to work fine, finally!!

I’ve reviewed countless examples to no avail but it does connect to the MQTT broker when CA authentication over TLS isn’t used. If anyone can assist it would be greatly appreciated.

ESP32-S3 MQTT TLS Publish Example

Seems to be an outdated pem certificate.

OpenSSL Command Prompt Example

openssl s_client -connect mqtt.eclipseprojects.io:8883 -showcerts > eclipseprojects.txt

It is the second base-64 certificate in the outputted file that seems to work.