xref: /netbsd/usr.sbin/wg-keygen/wg-keygen.8 (revision 8cf8f920)
1*8cf8f920Sriastradh.\"	$NetBSD: wg-keygen.8,v 1.3 2020/08/26 16:03:42 riastradh Exp $
22d7345b2Sriastradh.\"
32d7345b2Sriastradh.\" Copyright (C) Ryota Ozaki <ozaki.ryota@gmail.com>
42d7345b2Sriastradh.\" All rights reserved.
52d7345b2Sriastradh.\"
62d7345b2Sriastradh.\" Redistribution and use in source and binary forms, with or without
72d7345b2Sriastradh.\" modification, are permitted provided that the following conditions
82d7345b2Sriastradh.\" are met:
92d7345b2Sriastradh.\" 1. Redistributions of source code must retain the above copyright
102d7345b2Sriastradh.\"    notice, this list of conditions and the following disclaimer.
112d7345b2Sriastradh.\" 2. Redistributions in binary form must reproduce the above copyright
122d7345b2Sriastradh.\"    notice, this list of conditions and the following disclaimer in the
132d7345b2Sriastradh.\"    documentation and/or other materials provided with the distribution.
142d7345b2Sriastradh.\" 3. Neither the name of the University nor the names of its contributors
152d7345b2Sriastradh.\"    may be used to endorse or promote products derived from this software
162d7345b2Sriastradh.\"    without specific prior written permission.
172d7345b2Sriastradh.\"
182d7345b2Sriastradh.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
192d7345b2Sriastradh.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
202d7345b2Sriastradh.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
212d7345b2Sriastradh.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
222d7345b2Sriastradh.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
232d7345b2Sriastradh.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
242d7345b2Sriastradh.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
252d7345b2Sriastradh.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
262d7345b2Sriastradh.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
272d7345b2Sriastradh.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
282d7345b2Sriastradh.\" SUCH DAMAGE.
292d7345b2Sriastradh.\"
30cf48c773Sriastradh.Dd August 20, 2020
312d7345b2Sriastradh.Dt WG-KEYGEN 8
322d7345b2Sriastradh.Os
33cf48c773Sriastradh.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
342d7345b2Sriastradh.Sh NAME
352d7345b2Sriastradh.Nm wg-keygen
36*8cf8f920Sriastradh.Nd generate keys for wg interfaces
37cf48c773Sriastradh.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
382d7345b2Sriastradh.Sh SYNOPSIS
392d7345b2Sriastradh.Nm
40cf48c773Sriastradh.Nm Fl Fl pub
41cf48c773Sriastradh.Nm Fl Fl psk
42cf48c773Sriastradh.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
432d7345b2Sriastradh.Sh DESCRIPTION
442d7345b2Sriastradh.Nm
45*8cf8f920Sriastradhgenerates keys for
46*8cf8f920Sriastradh.Xr wg 4 .
47cf48c773Sriastradh.Bl -tag -width abcd
48cf48c773Sriastradh.It Nm
49cf48c773SriastradhGenerate a private key and print it to standard output.
50cf48c773Sriastradh.It Nm Fl Fl pub
51cf48c773SriastradhRead a private key from standard input, and print the corresponding
52cf48c773Sriastradhpublic key to standard output.
53cf48c773Sriastradh.It Nm Fl Fl psk
54cf48c773SriastradhGenerate a preshared key and print it to standard output.
55cf48c773Sriastradh.El
56cf48c773Sriastradh.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
57cf48c773Sriastradh.Sh EXAMPLES
58cf48c773SriastradhSee
59cf48c773Sriastradh.Xr wg 4
60cf48c773Sriastradhfor example usage.
61cf48c773Sriastradh.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
622d7345b2Sriastradh.Sh SEE ALSO
632d7345b2Sriastradh.Xr wg 4 ,
642d7345b2Sriastradh.Xr wgconfig 8
65cf48c773Sriastradh.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
662d7345b2Sriastradh.Sh HISTORY
672d7345b2SriastradhThe
682d7345b2Sriastradh.Nm
692d7345b2Sriastradhcommand first appeared in
70cf48c773Sriastradh.Nx 10.0 .
71cf48c773Sriastradh.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
722d7345b2Sriastradh.Sh AUTHORS
732d7345b2SriastradhThe
742d7345b2Sriastradh.Nm
75cf48c773Sriastradhcommand was written by
762d7345b2Sriastradh.An Ryota Ozaki
772d7345b2Sriastradh.Aq ozaki.ryota@gmail.com .
78