Connect P1 to local cloud server over wifi

I’m attempting to setup my device on a local cloud server running on my computer. I’m using the CLI and have logged into the local cloud, when use setup the device fails to connect. I suspect I need to change the device keys but can’t use DFU mode because I don’t have a usb connection. Is there a way to get/set device keys with a wireless connection?

Let me ping someone that might be able to help, @ParticleD, or @mstanley are you able to assist?

In order to switch to a private cloud you need to reset the server address and server public key. In most cases, you’ll also need to reset the device private and public keys.

That’s going to be really difficult without a USB connector and RESET and SETUP/MODE buttons.

It is possible to do this by SWD/JTAG, so if you have access to D6 and D7 and have the ability to enter DFU mode (even without USB), and a ST-LINK/V2, that is the next best way.

There’s an insanely round-about way you might be able to reset the keys from user code by embedding the data in a firmware binary and doing the flash from user firmware. While theoretically possible, I’ve never tested it, and getting a local cloud working is hard enough in perfect conditions; you will almost certainly render your device unusable if you attempt to do it and only have the ability to reset keys OTA.