Device identity change after reflash

Haven’t you noticed that after re-flashing the device with the same image, the device-id assigned by mender changes?
I also have my custom identity script that is based on the cpu_id, however if I re-flash the device I got a different device id and the device needs to be accepted again. Does it also happen to you?

Hi @sd-ricardo,

The behaviour should be like this:

  • once the device is re-flashed, it obviously has no access to its certificate anymore
  • it needs to be re-authenticated
  • if the device identity provider has not changed (e.g. MAC adress, cpu_id, or whatever you used) then it should be recognized as the same device.

Greetz,
Josef

thanks for the detailed explanation!
The problem was I was updating the certificate.

So in case the certificate expires all devices needs to be re-registered?