Do you want to write config file and restart WireGuard server?
Wireguard Server Settings
Interface
Key Pair
KeyPair Generation
Are you sure to generate a new key pair for the Wireguard server?
The existing Client's peer public key need to be updated to keep the connection working.