How to setup connect MQTT over wss with CA signed server certificate

tnnguyen
Posts: 2
Joined: Thu May 22, 2025 4:32 pm

How to setup connect MQTT over wss with CA signed server certificate

Postby tnnguyen » Thu May 22, 2025 4:47 pm

hi everyone
I’m using the ESP32-C3 with ESP-IDF v5.4 in my application.
I want to set up the MQTT configuration to connect via WSS using a CA-signed server certificate, meaning I don’t want to define a CA file on the device.
How should I configure this?

nopnop2002
Posts: 362
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

Re: How to setup connect MQTT over wss with CA signed server certificate

Postby nopnop2002 » Fri May 23, 2025 3:26 am

I want to set up the MQTT configuration to connect via WSS using a CA-signed server certificate, meaning I don’t want to define a CA file on the device.

As far as I know, a CA file is required on the device side.

tnnguyen
Posts: 2
Joined: Thu May 22, 2025 4:32 pm

Re: How to setup connect MQTT over wss with CA signed server certificate

Postby tnnguyen » Fri May 23, 2025 3:31 pm

Screenshot 2025-05-23 at 16.54.02.png
Screenshot 2025-05-23 at 16.54.02.png (155.78 KiB) Viewed 131 times
When I use the MQTTX app to test my server and set up TLS/SSL in CA-signed server certificate mode without adding any certificate files, the app can still connect. Is it possible to do the same with the device?

Who is online

Users browsing this forum: DuckDuckGo [Bot], Google [Bot] and 1 guest