Managing admin keys

With firmware 2.5.2 and python cli 2.5.0, how does one remove security admin keys?

Also exporting config, editing, and then importing gives:
Aborting due to: expected bytes, str found

Any clues?

You can remove all admin keys with:

meshtastic --port /dev/ttyACM0 --set security.admin_key  ""

I tested this with meshtastic CLI version 2.5.1 and firmware version 2.5.4

Unfortunately I couldn’t figure out how to add the keys.

Hmm. That deletion did not work for me with those versions.

For adding keys did you try prefixing with “base64:”?

1 Like

adding base64: to the front of the key does allow it to be written successfully, but i still cant get remote admin to work via the app, but its working from the cli