thomasnordquist / MQTT-Explorer

An all-round MQTT client that provides a structured topic overview
https://mqtt-explorer.com
Other
2.99k stars 287 forks source link

client certificate: KEY_VALUES_MISMATCH #826

Closed crackwitz closed 1 month ago

crackwitz commented 1 month ago

image

I generated key and crt for a CA, server, and client. mosquitto_pub/sub accepts them and connects successfully, as does "MQTTX", a competing GUI.

What did I do wrong to get that error? Was I not paying attention to specific fields in the client cert that need specific values?

crackwitz commented 1 month ago

And with a bit of research, that too was my error. The error says the client.crt did not match the client.key I provided. I thought I had regenerated both files. Maybe I didn't do that consistently, or maybe the GUI requires me to clear and reset those files.

Would be great to get those stack traces turned into something that directly hints at what the user did wrong.