How to change wifi credentials in OH3 / 4 and myopenhab.com secret?

No much time for research due to a hack on my network… thanks for help!

OH doesn’t store WiFi credentials. Do you mean openHABian? If so I am pretty sure you can configure that through openhabian-config 30 | System Settings → 37 | WiFi Setup.

To change the secret, stop OH, delete /var/lib/openhab/uuid and /var/lib/openhab/openhabcloud/secret. Start OH and those files will be regenerated. You’ll need to edit both on your myopenhab.org account to link your OH instance to your account again.

I’m on OH 3.

Which changes nothing about what I said.

Right. Wifi password changed very easy, thank you.
Now I’m dealing with myopenhab.org