xref: /minix3/crypto/external/bsd/netpgp/dist/src/hkpd/hkpd.1 (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc.\" $NetBSD: hkpd.1,v 1.3 2014/03/18 18:20:35 riastradh Exp $
2ebfedea0SLionel Sambuc.\"
3ebfedea0SLionel Sambuc.\" Copyright (c) 2009,2010 The NetBSD Foundation, Inc.
4ebfedea0SLionel Sambuc.\" All rights reserved.
5ebfedea0SLionel Sambuc.\"
6ebfedea0SLionel Sambuc.\" This manual page is derived from software contributed to
7ebfedea0SLionel Sambuc.\" The NetBSD Foundation by Alistair Crooks (agc@NetBSD.org).
8ebfedea0SLionel Sambuc.\"
9ebfedea0SLionel Sambuc.\" Redistribution and use in source and binary forms, with or without
10ebfedea0SLionel Sambuc.\" modification, are permitted provided that the following conditions
11ebfedea0SLionel Sambuc.\" are met:
12ebfedea0SLionel Sambuc.\" 1. Redistributions of source code must retain the above copyright
13ebfedea0SLionel Sambuc.\"    notice, this list of conditions and the following disclaimer.
14ebfedea0SLionel Sambuc.\" 2. Redistributions in binary form must reproduce the above copyright
15ebfedea0SLionel Sambuc.\"    notice, this list of conditions and the following disclaimer in the
16ebfedea0SLionel Sambuc.\"    documentation and/or other materials provided with the distribution.
17ebfedea0SLionel Sambuc.\"
18ebfedea0SLionel Sambuc.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19ebfedea0SLionel Sambuc.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20ebfedea0SLionel Sambuc.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21ebfedea0SLionel Sambuc.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22ebfedea0SLionel Sambuc.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23ebfedea0SLionel Sambuc.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24ebfedea0SLionel Sambuc.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25ebfedea0SLionel Sambuc.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26ebfedea0SLionel Sambuc.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27ebfedea0SLionel Sambuc.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28ebfedea0SLionel Sambuc.\" POSSIBILITY OF SUCH DAMAGE.
29ebfedea0SLionel Sambuc.\"
30ebfedea0SLionel Sambuc.Dd September 1, 2010
31ebfedea0SLionel Sambuc.Dt HKPD 1
32ebfedea0SLionel Sambuc.Os
33ebfedea0SLionel Sambuc.Sh NAME
34ebfedea0SLionel Sambuc.Nm hkpd
35ebfedea0SLionel Sambuc.Nd HTTP key protocol daemon
36ebfedea0SLionel Sambuc.Sh SYNOPSIS
37ebfedea0SLionel Sambuc.Nm
38ebfedea0SLionel Sambuc.Op Fl DV
39ebfedea0SLionel Sambuc.Op Fl f families
40ebfedea0SLionel Sambuc.Op Fl H homedir
41ebfedea0SLionel Sambuc.Op Fl h hostname
42ebfedea0SLionel Sambuc.Op Fl p port
43ebfedea0SLionel Sambuc.Op Fl S keyfilename
44ebfedea0SLionel Sambuc.Op Fl v filename
45ebfedea0SLionel Sambuc.Sh DESCRIPTION
46ebfedea0SLionel SambucThe
47ebfedea0SLionel Sambuc.Nm
48ebfedea0SLionel Sambucdaemon is used to provide public key information on
49ebfedea0SLionel Sambuca socket to client programs.
50ebfedea0SLionel SambucThe client can request the information in two separate ways,
51ebfedea0SLionel Sambuc.Dq human
52ebfedea0SLionel Sambucand
53ebfedea0SLionel Sambuc.Dq machine readable .
54ebfedea0SLionel Sambuc.Pp
55ebfedea0SLionel SambucThe following options can be used to modify the behaviour
56ebfedea0SLionel Sambucof the daemon:
57ebfedea0SLionel Sambuc.Bl -tag -width protocol-families
58ebfedea0SLionel Sambuc.It Fl D
59ebfedea0SLionel SambucDo not detach the daemon from the controlling tty, and keep the
60ebfedea0SLionel Sambuc.Nm
61ebfedea0SLionel Sambucprocess running in the foreground.
62ebfedea0SLionel Sambuc.It Fl f Ar protocol-families
63ebfedea0SLionel Sambucallows the address families for sockets to be selected.
64ebfedea0SLionel SambucThe argument is the string concatenating the families,
65ebfedea0SLionel Sambucwith
66ebfedea0SLionel Sambuc.Dq 4
67ebfedea0SLionel Sambucrepresenting
68ebfedea0SLionel Sambuc.Dv INET4 ,
69ebfedea0SLionel Sambucand
70ebfedea0SLionel Sambuc.Dq 6
71ebfedea0SLionel Sambucrepresenting
72ebfedea0SLionel Sambuc.Dv INET6 .
73ebfedea0SLionel SambucThe default value for this parameter is
74ebfedea0SLionel Sambuc.Dq 46
75ebfedea0SLionel Sambucwhich means that both INET4 and INET6 protocol
76ebfedea0SLionel Sambucfamilies are used when setting up the sockets.
77ebfedea0SLionel Sambuc.It Fl H Ar homedir
78ebfedea0SLionel SambucUse the setting of
79ebfedea0SLionel Sambuc.Dv homedir
80ebfedea0SLionel Sambucas the directory for the public key keyrings.
81ebfedea0SLionel Sambuc.It Fl h Ar hostname
82ebfedea0SLionel SambucSet the hostname (for use in binding sockets).
83ebfedea0SLionel Sambuc.It Fl p Ar port
84ebfedea0SLionel SambucSet the port number (for use in binding sockets).
85ebfedea0SLionel SambucThe default port number is the
86ebfedea0SLionel Sambuc.Dq hkp
87ebfedea0SLionel Sambucservice, defined as port
88ebfedea0SLionel Sambuc.Dv 11371 .
89ebfedea0SLionel Sambuc.It Fl S Ar sshkeyfile
90ebfedea0SLionel SambucServe the ssh public keys found in the key file.
91ebfedea0SLionel SambucThe default file for the ssh key is
92ebfedea0SLionel Sambuc.Pa $HOME/.ssh/id_rsa.pub .
93ebfedea0SLionel Sambuc.It Fl V
94ebfedea0SLionel SambucDisplay the version number of the daemon and exit.
95ebfedea0SLionel Sambuc.It Fl v Ar filename
96ebfedea0SLionel SambucProduce extra debugging output from the internal file named
97ebfedea0SLionel Sambuc.Dv filename .
98ebfedea0SLionel Sambuc.El
99ebfedea0SLionel Sambuc.Pp
100ebfedea0SLionel SambucThe
101ebfedea0SLionel Sambuc.Nm
102ebfedea0SLionel Sambucdaemon is built on
103ebfedea0SLionel Sambuc.Xr libnetpgp 3
104ebfedea0SLionel Sambucand returns public key information as held in the
105ebfedea0SLionel Sambucpublic keyring of the user running the
106ebfedea0SLionel Sambuc.Nm
107ebfedea0SLionel Sambucdaemon utility by default.
108ebfedea0SLionel Sambuc.Pp
109ebfedea0SLionel SambucThe information returned to the HKP client is encoded
110ebfedea0SLionel Sambucin JSON using the
111ebfedea0SLionel Sambuc.Xr libmj 3
112ebfedea0SLionel Sambuclibrary.
113ebfedea0SLionel Sambuc.Sh EXIT STATUS
114ebfedea0SLionel SambucIn normal operation, the
115ebfedea0SLionel Sambuc.Nm
116ebfedea0SLionel Sambucdaemon will not return.
117ebfedea0SLionel Sambuc.Sh SEE ALSO
118ebfedea0SLionel Sambuc.Xr hkpc 1 ,
119ebfedea0SLionel Sambuc.Xr netpgpkeys 1 ,
120ebfedea0SLionel Sambuc.Xr ssh 1 ,
121ebfedea0SLionel Sambuc.Xr libmj 3
122ebfedea0SLionel Sambuc.Xr libnetpgp 3
123ebfedea0SLionel Sambuc.Sh HISTORY
124ebfedea0SLionel SambucThe
125ebfedea0SLionel Sambuc.Nm
126ebfedea0SLionel Sambuccommand first appeared in
127ebfedea0SLionel Sambuc.Nx 6.0 .
128ebfedea0SLionel Sambuc.Sh AUTHORS
129ebfedea0SLionel Sambuc.An Alistair Crooks Aq Mt agc@NetBSD.org .
130