Re: get public key as non-root

2020-07-03 Thread Jason A. Donenfeld
On Fri, Jul 3, 2020 at 11:47 AM Klemens Nanni wrote: > Is there any particular reason why an interface's *public* key is only > shown to the root user in ifconfig? Yes, there is a reason for this. The WireGuard protocol has a property called "identity hiding". See section 3.4 and 4.3.4 lemma 7 o

wg: get public key as non-root

2020-07-03 Thread Klemens Nanni
Is there any particular reason why an interface's *public* key is only shown to the root user in ifconfig? Similar to `wgport', I'd like to see the public key as non-root user as well for convenience: $ ifconfig wg0 wg0: flags=80c3 mtu 1420 index 5 priority 0 llpri