[PATCH] Implement reading keys from stdin.

Mantas Mikulėnas grawity at gmail.com
Fri Feb 14 12:12:35 CET 2020


On Sun, Feb 9, 2020 at 12:23 AM Jason A. Donenfeld <Jason at zx2c4.com> wrote:

> Thank for the patch, and nice hanging with you at FOSDEM.
>
> Trying to get a handle on the use case for this. Is this so that you
> can put the private key and the preshared key in a single file
> together? Is there a situation where the shell redirection trick
> doesn't cut it? For example:
>
> wg set wg0 private-key <(head -n 1 bothkeys) preshared-key <(tail -n 1
> bothkeys)
>

I would guess there are shells which don't have the <(cmd) bashism...

-- 
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20200214/564798a2/attachment.html>


More information about the WireGuard mailing list