Remove building with NOCRYPTO option
[minix3.git] / crypto / external / bsd / netpgp / dist / src / hkpclient / hkpc.1
blob8a5cc3df49258030e5112e89941848ba6ee05550
1 .\" $NetBSD: hkpc.1,v 1.3 2014/02/17 07:23:18 agc Exp $
2 .\"
3 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
5 .\"
6 .\" This manual page is derived from software contributed to
7 .\" The NetBSD Foundation by Alistair Crooks (agc@NetBSD.org).
8 .\"
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
11 .\" are met:
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\"    notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\"    notice, this list of conditions and the following disclaimer in the
16 .\"    documentation and/or other materials provided with the distribution.
17 .\"
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
29 .\"
30 .Dd February 16, 2014
31 .Dt HKPC 1
32 .Os
33 .Sh NAME
34 .Nm hkpc
35 .Nd retrieve public key information via HKP
36 .Sh SYNOPSIS
37 .Nm
38 .Op Fl f address-family
39 .Op Fl h hostname
40 .Op Fl p port
41 .Cm [get|index|vindex]
42 userid...
43 .Sh DESCRIPTION
44 The
45 .Nm
46 command retrieves public key information from the key server daemon
47 using the HKP protocol.
48 The
49 .Xr hkpd 8
50 is normally used to retrieve public key information.
51 .Pp
52 Three types of information can be retrieved from the server:
53 .Bl -tag -width vindex
54 .It get
55 The public key, base64-encoded, corresponding to the given userid
56 is returned.
57 The userid can be a numeric value, a unique part of the human
58 identifier, or left blank.
59 The first matching key will be returned, in a format suitable for
60 importing to a keyring via the
61 .Xr netpgpkeys 1
62 command.
63 .It index
64 the information returned from this command is the same as
65 provided by the
66 .Xr netpgpkeys 1
67 command, using the
68 .Dv --list-keys
69 modifier.
70 .It vindex
71 the information returned from this command is the same as
72 provided by the
73 .Xr netpgpkeys 1
74 command, using the
75 .Dv --list-sigs
76 modifier.
77 .El
78 .Pp
79 For this utility to provide the correct results, an hkpd
80 server must be listening using the correct protocol family,
81 on the provided port on the appropriate server.
82 The default port for the HKP server is
83 .Dv 11371 ,
84 whilst the hostname defaults to
85 .Dv localhost .
86 .Pp
87 The
88 .Dv netpgp
89 suite of libraries and commands provides a convenient client in
90 .Xr hkpd 1 .
91 .Pp
92 The information is sent to the server in the form of
93 an HTTP
94 .Dv GET
95 command, and is returned as a JSON-encoded
96 HKP packet.
97 .Xr libmj 3
98 is used to decode the JSON in the returned HKP packet.
99 .Sh EXIT STATUS
102 utility will return 0 for success,
103 or 1 for failure.
104 Output will be printed on stdout.
105 .Sh SEE ALSO
106 .Xr hkpd 1 ,
107 .Xr netpgpkeys 1 ,
108 .Xr ssh 1 ,
109 .\" .Xr libbz2 3 ,
110 .Xr libmj 3 ,
111 .Xr libnetpgp 3
112 .Sh STANDARDS
114 .%A J. Callas
115 .%A L. Donnerhacke
116 .%A H. Finney
117 .%A D. Shaw
118 .%A R. Thayer
119 .%D November 2007
120 .%R RFC 4880
121 .%T OpenPGP Message Format
123 .Sh HISTORY
126 command first appeared in
127 .Nx 6.0 .
128 .Sh AUTHORS
129 .An Alistair Crooks Aq Mt agc@NetBSD.org .