BalenaRequestError: Request error: Unauthorized

To all having the same problems with cli login.
Meanwhile I found a way to get the server running and being able to log in using balena-cli.

I’ve started with a new installation on Ubuntu 18.04.1 x64 server.
I’ve used www.goip.de to define the needed domains. -> How to setup CNAME
I’ve processed all the steps as described in https://www.balena.io/open/docs/getting-started/
I’ve copied the certificate ./open-balena/config/certs/root/ca.crt to the client.
I’ve installed balena-cli, set the env variable to link to the server and the certificate and logged.

Just by deleting the open-balena/config folder and starting by ./scripts/quickstart didn’t work in my case. I always got the Unauthorized error.