Made a step back, because at some point my dfu-util is freaking out and throws me all the time somthing with “Make sure your core in in X Mode (blinking blue/yellow), and is connected to your computer”.
Restarting the Raspberry fix the problem, then I simply reset the Core download the public key and send it with the spark keys server cloud_public.der to my core.
My Wifi Credentials from the last time I have used the spark setup are still in the cache so the Core immediately connect to the and I am able to flash my firmware again.
I am absolutely proud that I did not fuck it up completely
What is with that spark-protocol? I think some of my problems are within this piece of code. I cloned it from git and did a npm install in that folder. Exactly like I did with the spark-server. But the spark server must be started with node main.js, what is with the spark-protocol do I need to start it the same way?
Second I have connected from my Mac to my Raspberry (where the spark-server runs) and got a “Problem loading the page”. I can see in the output of the server a Handshake decryption error. with something like “Core disconnected: decryption failed”. Should the Core linked to the local first?