Closed lars-t-hansen closed 1 year ago
@lars-t-hansen : The Basic TLS MQTT demo is not intended to use certificate authentication.
Rather, it's meant to be used with MQTT password based auth. When connecting to AWS IoT core, you can use a custom authorizer to accomplish this.
There are also instructions to run the Basic TLS demo with a local MQTT broker (Eclipse Mosquitto).
I was playing with these demos today, and could not get
mqtt_demo_basic_tls
to connect properly, while there was no problem withmqtt_demo_mutual_auth
, this is the output from the former:Up to the point of connection the only material difference between these two programs is that
mqtt_demo_mutual_auth
adds the client cert and the private key to the openssl credentials. As I understand it, those should not be needed formqtt_demo_basic_tls
, but when I do add them to the credentials of the latter program it starts to work as expected. Diff:(The client system is Fedora 37, x64.)