Certificate and check code

Updated: from version 1.11

The check code is the fingerprint of the certificate the master uses to secure its HTTPS connection. The line stores it during pairing and checks on every connection whether the master still shows the same certificate. This way a line never sends its data to another device that pretends to be the master.

You see the master's check code on the master on the Federation page under Add line, and on the line in the "Federation" card under Check code.

When the check code changes

The master's certificate changes

  • when its self-generated certificate expires. It is valid for 2 years. PlantBeat renews it at startup as soon as it has less than 30 days left. The "Federation" card on the master says so beforehand: "This installation's certificate expires on …." The master sends a mail 60 and 30 days before, on expiry and on the change.
  • when you upload your own certificate or enter a new address on the master under Settings, section "Access & security", card "Secure connection (HTTPS)".
  • when the master's backup is restored on a different device, see Replacement device and data backup.

Tip

Plan the restart of the master after a certificate renewal so that someone can confirm the lines afterwards.

Confirm the new check code

After a change, the lines stop sending. The "Federation" card on the line shows "The master shows a different certificate. Get the check code and compare it on the master before you accept it." The master shows "Compare the check code on every line before you confirm."

On every line:

  1. Open Settings, section "Data", card "Federation".
  2. Click Get the check code of the master. The line shows "Master "…" now shows check code …".
  3. Compare it character by character with the check code on the master.
  4. If it matches, click Matches the master. The card reports "New check code accepted." If it does not match, click Get again or check which device answers at the address.

The line then continues sending and catches up on everything that came in meanwhile.

Warning

Do not decouple and do not pair again in this case. That sends the entire history twice. The card warns about this: "Decoupling and pairing again instead of accepting the check code sends the history twice."

Your own certificate on the master

The line recognizes its master by its certificate alone. If the same certificate with its key is also on other servers, for example a company or wildcard certificate, any of these servers can pretend to be the master if it takes its place in the network. It could then read the data passed on and, where the line allows it, operate shared values.

So if your lines allow operation from the master, use the self-generated certificate on the master or your own certificate that is only on this master.

Next steps