Implementation of a Mender client in bash, mostly serving as a reference of the Mender device API.
Read more on mender.io and docs for Device API.
Developed while writing the How to write a custom client interfacing a Mender server tutorial.
Usage:
Generate client keys:
mkdir keys
openssl genpkey -algorithm RSA -out keys/private.key -pkeyopt rsa_keygen_bits:3072
openssl rsa -in keys/private.key -out keys/private.key
openssl rsa -in keys/private.key -out keys/public.key -pubout
Start the client:
# These are optional and these are the default values
export MENDER_SERVER_URL="https://hosted.mender.io"
export MENDER_DEVICE_TYPE="mender-bash"
# This one is mandatory
export MENDER_TENANT_TOKEN="<paste your token here"
./mender-client.sh