7

How should I authenticate my device? I have an arduino yun, running an "daemon" on the OpenWRT side. The daemon reads commands from my message broker, executes them, and returns the value.

Before communicating with the broker, the device should be authenticated (I believe). What is the right flow?

Do I even need to authenticate it? If the broker credentials are embedded in the device, I maybe wouldn't need to do so. But I am not quite sure.

1 Answers1

4

MQTT supports username/password authentication and client side certificates to authenticate the client to the broker.

Using certificates also allows you to verify the broker is not being impersonated as well if you use certificate pinning.

hardillb
  • 12,813
  • 1
  • 21
  • 34