First of all, I love this project and what is made possible with TeddyCloud, we switched from Tonuino to Teddycloud.
I am a newbie and got everything running, except for the boxine connection (codeword owl). I found out that the chances are high I messed up with the certificates. However, I have issues to find the best way to resolve it. What I did so far:
Installed Teddycloud (Docker) on Synology Diskstation with the wrong ports
Downloaded the unpatched firmware and the patched firmware as a backup on my PC
Got the issues with port 443, so that my box could not connect to teddycloud
Flashed the Toniebox with the unpatched firmware (everything was working fine again)
Deleted the old container and created a new container.
Flashed the Toniebox again (due to connection loss, I needed to repeat it)
Everything works fine except for the Boxine connection. I get the codeword owl and follwing details are stored in the log:
INFO |handler_cloud.c:0724:handleCloudContent| Serve cloud content from /v2/content/43567e1d500304e0
INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443…
INFO |cloud_request.c:0252:web_request| trying IP: 18.156.186.144
ERROR|cloud_request.c:0262:web_request| Failed to connect to HTTP server! HTTP=Unknown HTTP Status Code error=Unknown certificate authority [537]
Most probably your client certificate is wrong, it’s from Teddy, not from Boxine (because you patched an already patched box). This can be fixed inside your teddycloud container. No need to reflash the box.
You can fix this by doing the following:
connect to your teddycloud container: docker exec -it teddycloud bash
Thank you 1000 times! This helped a lot - it is working now
Just as short question this test script shows following:
Checking teddyCloud certificates…
Server:
ca.der: OK
ca-key.pem: OK
ca-root.pem: OK
ca-root.srl: File not found!
teddy-cert.pem: OK
teddy-key.csr: File not found!
teddy-key.pem: OK
Client (default):
ca.der: OK
client.der: OK
private.der: OK
Client per box:
744dXXXXXXXX/ca.der: OK
744dXXXXXXXX/client.der: OK
744dXXXXXXXX/private.der: OK
Can you or somebody else explain what these two files do and if it is an issue that they were not found? (As everything is working at the moment, I am just wondering).
These two missing files are not mandatory. They are created when using the gencert.sh script (manually), but obviously not in case of the automatic generation. I will exclude those two files in the next update.