netxduo icon indicating copy to clipboard operation
netxduo copied to clipboard

How to disable certificate verification in MQTT and only enable encryption using TLS?

Open vscodeenv opened this issue 3 months ago • 3 comments

I used nxd_mqtt_client.c to create an MQTT client and establish a TLS connection with the server. Since there are no certificates, I hope to find a way to disable certificate verification. I sincerely request your guidance, dear teachers and experts. Thank you very much!

vscodeenv avatar Oct 29 '25 18:10 vscodeenv

Hi @vscodeenv.

I am not sure myself. I will ask a member of the team with NetX Duo experience to have a look at this. Thank you for your patience.

fdesbiens avatar Nov 11 '25 13:11 fdesbiens

@vscodeenv did you use an x.509 certificate to establish a TLS connection with the server? Is so, how did you create this certificate? Was it assigned by the server? Thanks!

yuxinzhou5 avatar Nov 18 '25 16:11 yuxinzhou5

@vscodeenv can we better understand the use case?
What MQTT server are you connecting to? Is it requiring mTLS certificate authentication for your client? If this is mTLS 2 way authentication, is there not a client certificate loaded in your TLS client?

cypherbridge avatar Nov 18 '25 17:11 cypherbridge