xref: /minix3/crypto/external/bsd/netpgp/dist/src/hkpclient/hkpc.1 (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc.\" $NetBSD: hkpc.1,v 1.3 2014/02/17 07:23:18 agc Exp $
2ebfedea0SLionel Sambuc.\"
3ebfedea0SLionel Sambuc.\" Copyright (c) 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.\"
30*0a6a1f1dSLionel Sambuc.Dd February 16, 2014
31ebfedea0SLionel Sambuc.Dt HKPC 1
32ebfedea0SLionel Sambuc.Os
33ebfedea0SLionel Sambuc.Sh NAME
34ebfedea0SLionel Sambuc.Nm hkpc
35ebfedea0SLionel Sambuc.Nd retrieve public key information via HKP
36ebfedea0SLionel Sambuc.Sh SYNOPSIS
37ebfedea0SLionel Sambuc.Nm
38ebfedea0SLionel Sambuc.Op Fl f address-family
39ebfedea0SLionel Sambuc.Op Fl h hostname
40ebfedea0SLionel Sambuc.Op Fl p port
41ebfedea0SLionel Sambuc.Cm [get|index|vindex]
42ebfedea0SLionel Sambucuserid...
43ebfedea0SLionel Sambuc.Sh DESCRIPTION
44ebfedea0SLionel SambucThe
45ebfedea0SLionel Sambuc.Nm
46ebfedea0SLionel Sambuccommand retrieves public key information from the key server daemon
47ebfedea0SLionel Sambucusing the HKP protocol.
48ebfedea0SLionel SambucThe
49ebfedea0SLionel Sambuc.Xr hkpd 8
50ebfedea0SLionel Sambucis normally used to retrieve public key information.
51ebfedea0SLionel Sambuc.Pp
52ebfedea0SLionel SambucThree types of information can be retrieved from the server:
53ebfedea0SLionel Sambuc.Bl -tag -width vindex
54ebfedea0SLionel Sambuc.It get
55ebfedea0SLionel SambucThe public key, base64-encoded, corresponding to the given userid
56ebfedea0SLionel Sambucis returned.
57ebfedea0SLionel SambucThe userid can be a numeric value, a unique part of the human
58ebfedea0SLionel Sambucidentifier, or left blank.
59ebfedea0SLionel SambucThe first matching key will be returned, in a format suitable for
60ebfedea0SLionel Sambucimporting to a keyring via the
61ebfedea0SLionel Sambuc.Xr netpgpkeys 1
62ebfedea0SLionel Sambuccommand.
63ebfedea0SLionel Sambuc.It index
64ebfedea0SLionel Sambucthe information returned from this command is the same as
65ebfedea0SLionel Sambucprovided by the
66ebfedea0SLionel Sambuc.Xr netpgpkeys 1
67ebfedea0SLionel Sambuccommand, using the
68ebfedea0SLionel Sambuc.Dv --list-keys
69ebfedea0SLionel Sambucmodifier.
70ebfedea0SLionel Sambuc.It vindex
71ebfedea0SLionel Sambucthe information returned from this command is the same as
72ebfedea0SLionel Sambucprovided by the
73ebfedea0SLionel Sambuc.Xr netpgpkeys 1
74ebfedea0SLionel Sambuccommand, using the
75ebfedea0SLionel Sambuc.Dv --list-sigs
76ebfedea0SLionel Sambucmodifier.
77ebfedea0SLionel Sambuc.El
78ebfedea0SLionel Sambuc.Pp
79ebfedea0SLionel SambucFor this utility to provide the correct results, an hkpd
80ebfedea0SLionel Sambucserver must be listening using the correct protocol family,
81ebfedea0SLionel Sambucon the provided port on the appropriate server.
82ebfedea0SLionel SambucThe default port for the HKP server is
83ebfedea0SLionel Sambuc.Dv 11371 ,
84ebfedea0SLionel Sambucwhilst the hostname defaults to
85ebfedea0SLionel Sambuc.Dv localhost .
86ebfedea0SLionel Sambuc.Pp
87ebfedea0SLionel SambucThe
88ebfedea0SLionel Sambuc.Dv netpgp
89*0a6a1f1dSLionel Sambucsuite of libraries and commands provides a convenient client in
90ebfedea0SLionel Sambuc.Xr hkpd 1 .
91ebfedea0SLionel Sambuc.Pp
92ebfedea0SLionel SambucThe information is sent to the server in the form of
93ebfedea0SLionel Sambucan HTTP
94ebfedea0SLionel Sambuc.Dv GET
95ebfedea0SLionel Sambuccommand, and is returned as a JSON-encoded
96ebfedea0SLionel SambucHKP packet.
97ebfedea0SLionel Sambuc.Xr libmj 3
98ebfedea0SLionel Sambucis used to decode the JSON in the returned HKP packet.
99ebfedea0SLionel Sambuc.Sh EXIT STATUS
100ebfedea0SLionel SambucThe
101ebfedea0SLionel Sambuc.Nm
102ebfedea0SLionel Sambucutility will return 0 for success,
103ebfedea0SLionel Sambucor 1 for failure.
104ebfedea0SLionel SambucOutput will be printed on stdout.
105ebfedea0SLionel Sambuc.Sh SEE ALSO
106ebfedea0SLionel Sambuc.Xr hkpd 1 ,
107ebfedea0SLionel Sambuc.Xr netpgpkeys 1 ,
108ebfedea0SLionel Sambuc.Xr ssh 1 ,
109ebfedea0SLionel Sambuc.\" .Xr libbz2 3 ,
110ebfedea0SLionel Sambuc.Xr libmj 3 ,
111ebfedea0SLionel Sambuc.Xr libnetpgp 3
112ebfedea0SLionel Sambuc.Sh STANDARDS
113*0a6a1f1dSLionel Sambuc.Rs
114*0a6a1f1dSLionel Sambuc.%A J. Callas
115*0a6a1f1dSLionel Sambuc.%A L. Donnerhacke
116*0a6a1f1dSLionel Sambuc.%A H. Finney
117*0a6a1f1dSLionel Sambuc.%A D. Shaw
118*0a6a1f1dSLionel Sambuc.%A R. Thayer
119*0a6a1f1dSLionel Sambuc.%D November 2007
120*0a6a1f1dSLionel Sambuc.%R RFC 4880
121*0a6a1f1dSLionel Sambuc.%T OpenPGP Message Format
122*0a6a1f1dSLionel Sambuc.Re
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