Using openssl to generate private Key

nicolas prochazka prochazka.nicolas at gmail.com
Tue Sep 10 11:36:13 CEST 2019


Thanks for the explanation,
Nicolas

Le dim. 8 sept. 2019 à 23:24, Jason A. Donenfeld <Jason at zx2c4.com> a écrit :
>
> This seems to work, maybe:
>
> openssl genpkey -algorithm X25519 -outform der | tail -c 32 | base64
>
> openssl genpkey -algorithm X25519 -outform der | tail -c 32 | base64 | wg pubkey
>
> I haven't verified what's happening in the code though, so use at your
> own risk. wg(8) is the best way to generate wireguard private keys for
> use with wireguard.


More information about the WireGuard mailing list