Removing pre-shared key from peer using wg set fails

Tim Sedlmeyer tim at
Thu Nov 23 00:53:43 CET 2017

Removal of the preshared-key from a peer using the 'wg set' command and
providing /dev/null or an empty file as the preshared-key filename does not
result in the key being removed from the peer. The command doesn't return
an error, but it also doesn't remove the key. I have attempted it using
0.0.20171111 and 0.0.20171122.

Supplying /dev/null or an empty file as the filename does work properly for
removing the interface private-key.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the WireGuard mailing list