Hi,
I installed openbalena on an aws instance and got this error at login.
| |__ __ _ | | ____ _ __ __ _
| '_ \ / || | / __ \| '_ \ / _ |
| |) | () || || /| | | || () |
|._/ _,||| _/|| || _,_|
Logging in to x.y.z.com
? How would you like to login? Credentials
? Email:
? Password: [hidden]
FetchError: request to https://api.x.y.z.com/login_ failed, reason: self signed certificate in certificate chain
at ClientRequest. (/snapshot/versioned-source/node_modules/node-fetch/index.js:133:11)
at ClientRequest.emit (events.js:189:13)
at ClientRequest.EventEmitter.emit (domain.js:441:20)
at TLSSocket.socketErrorListener (_http_client.js:392:9)
at TLSSocket.emit (events.js:189:13)
at TLSSocket.EventEmitter.emit (domain.js:441:20)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
I am running on CentOS 7 and I already updated the system to trust the self signed cert by using the following commands and restarted the docker:
export NODE_EXTRA_CA_CERTS=~/open-balena/config/certs/root/ca.crt
update-ca-trust force-enable
cp /root/open-balena/config/certs/root/ca.crt /etc/pki/ca-trust/source/anchors/
update-ca-trust extract
Any idea?
Thanks