Can't re-add peer key Wireguard

Hello!

I’m trying to configure Wireguard. Have not been able to sucessfully setup yet.

Have tried a couple of times, decided to restart, erase all configs and try again.

When I try to add peer config, with its public key (remote peer key), I get a “invalid key error (6)”

Not sure what to try anymore. There are NO other configs, only 1 wireguard interface setup (auto keys generated), no other peer configs.

Is there a cache or hidden files that could be causing the issue?

Thanks!

The information you have provided is sparse.
In general on your mikrotik you generate a private key and public key (“######” ) when creating the wireguard interface and lets say create an address like 10.20.30.1/24 with listening port of 51280. The public key is for use on the peer or remote device, and you put it on the peer settings at the remote device which identifies the router.
Typically something like:
allowed-IPs=0.0.0.0/0
Endpoint-address=mynetname.net ( ip cloud name of router or similar )
Endpoint port=51280
keep-alive=35s
public-key=+“######”

Similarly on the peer remote device, a public key will be generated. this key is for use on the router, on the routers peer settings which identify the remote device.
typically something like.
add allowed-addresses=10.20.30.2/32 interface=wireguard-home public-key=“+++++” comment=“remote laptop”

where public-key=“+++++” was generated on the remote peer device.