WireGuard Archive on lore.kernel.org
 help / color / Atom feed
From: nicolas prochazka <prochazka.nicolas@gmail.com>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: Using openssl to generate private Key
Date: Tue, 10 Sep 2019 11:36:13 +0200
Message-ID: <CADdae-hWHX2xD4AZakB4Ytoz5Yj=yORoEE-Cs5o2seh=KhBnAQ@mail.gmail.com> (raw)
In-Reply-To: <CAHmME9qbO37Cs9gMOLxaTqdu2KLTeOm6vtpvWKPe4tJZ6mFB+g@mail.gmail.com>

Thanks for the explanation,
Nicolas

Le dim. 8 sept. 2019 à 23:24, Jason A. Donenfeld <Jason@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.
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

      reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-08 20:16 nicolas prochazka
2019-09-08 21:24 ` Jason A. Donenfeld
2019-09-10  9:36   ` nicolas prochazka [this message]

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADdae-hWHX2xD4AZakB4Ytoz5Yj=yORoEE-Cs5o2seh=KhBnAQ@mail.gmail.com' \
    --to=prochazka.nicolas@gmail.com \
    --cc=Jason@zx2c4.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com zx2c4-wireguard@archiver.kernel.org
	public-inbox-index wireguard


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/ public-inbox