xref: /minix3/crypto/external/bsd/netpgp/dist/src/netpgpkeys/netpgpkeys.1 (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc.\" $NetBSD: netpgpkeys.1,v 1.20 2014/02/17 07:23:18 agc 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 February 21, 2012
31ebfedea0SLionel Sambuc.Dt NETPGPKEYS 1
32ebfedea0SLionel Sambuc.Os
33ebfedea0SLionel Sambuc.Sh NAME
34ebfedea0SLionel Sambuc.Nm netpgpkeys
35ebfedea0SLionel Sambuc.Nd PGP key management utility
36ebfedea0SLionel Sambuc.Sh SYNOPSIS
37ebfedea0SLionel Sambuc.Nm
38ebfedea0SLionel Sambuc.Fl Fl export\-key
39ebfedea0SLionel Sambuc.Op options
40*0a6a1f1dSLionel Sambuc.Ar
41ebfedea0SLionel Sambuc.Nm
42ebfedea0SLionel Sambuc.Fl Fl find\-key
43ebfedea0SLionel Sambuc.Op options
44*0a6a1f1dSLionel Sambuc.Ar
45ebfedea0SLionel Sambuc.Nm
46ebfedea0SLionel Sambuc.Fl Fl generate\-key
47ebfedea0SLionel Sambuc.Op options
48*0a6a1f1dSLionel Sambuc.Ar
49ebfedea0SLionel Sambuc.Nm
50ebfedea0SLionel Sambuc.Fl Fl import\-key
51ebfedea0SLionel Sambuc.Op options
52*0a6a1f1dSLionel Sambuc.Ar
53ebfedea0SLionel Sambuc.Nm
54ebfedea0SLionel Sambuc.Fl Fl list\-keys
55ebfedea0SLionel Sambuc.Op options
56*0a6a1f1dSLionel Sambuc.Ar
57ebfedea0SLionel Sambuc.Nm
58ebfedea0SLionel Sambuc.Fl Fl list\-sigs
59ebfedea0SLionel Sambuc.Op options
60*0a6a1f1dSLionel Sambuc.Ar
61ebfedea0SLionel Sambuc.Nm
62ebfedea0SLionel Sambuc.Fl Fl trusted\-keys
63ebfedea0SLionel Sambuc.Op options
64ebfedea0SLionel Sambuc.Ar key ...
65ebfedea0SLionel Sambuc.Nm
66ebfedea0SLionel Sambuc.Fl Fl version
67ebfedea0SLionel Sambuc.Nm
68ebfedea0SLionel Sambuc.Op Fl Vgls
69ebfedea0SLionel Sambuc.Op Fl olong-option Ns = Ns value
70*0a6a1f1dSLionel Sambuc.Ar
71ebfedea0SLionel Sambuc.Pp
72ebfedea0SLionel Sambucwhere the long options for all commands are:
73ebfedea0SLionel Sambuc.Pp
74ebfedea0SLionel Sambuc.Op Fl Fl cipher Ns = Ns Ar cipher\-algorithm
75ebfedea0SLionel Sambuc.br
76ebfedea0SLionel Sambuc.Op Fl Fl coredumps
77ebfedea0SLionel Sambuc.br
78ebfedea0SLionel Sambuc.Op Fl Fl hash Ns = Ns Ar hash\-algorithm
79ebfedea0SLionel Sambuc.br
80ebfedea0SLionel Sambuc.Op Fl Fl homedir Ns = Ns Ar home\-directory
81ebfedea0SLionel Sambuc.br
82ebfedea0SLionel Sambuc.Op Fl Fl keyring Ns = Ns Ar keyring
83ebfedea0SLionel Sambuc.br
84ebfedea0SLionel Sambuc.Op Fl Fl ssh-keys
85ebfedea0SLionel Sambuc.br
86ebfedea0SLionel Sambuc.Op Fl Fl userid Ns = Ns Ar userid
87ebfedea0SLionel Sambuc.br
88ebfedea0SLionel Sambuc.Op Fl Fl verbose
89ebfedea0SLionel Sambuc.Sh DESCRIPTION
90ebfedea0SLionel SambucAt the present time, the
91ebfedea0SLionel Sambuc.Nm
92ebfedea0SLionel Sambucutility is still under development.
93ebfedea0SLionel SambucWhilst the signing and verification, encryption and
94ebfedea0SLionel Sambucdecryption parts of
95ebfedea0SLionel Sambuc.Xr netpgp 1
96ebfedea0SLionel Sambucare considered mature,
97ebfedea0SLionel Sambuc.Nm
98ebfedea0SLionel Sambucneeds more work.
99ebfedea0SLionel SambucOther key management utilities should be used in preference
100ebfedea0SLionel Sambucto this one.
101ebfedea0SLionel Sambuc.Pp
102ebfedea0SLionel SambucThe
103ebfedea0SLionel Sambuc.Nm
104ebfedea0SLionel Sambuccommand is used for all forms of PGP key management,
105ebfedea0SLionel Sambucfrom generation of new keys to propagation of public
106ebfedea0SLionel Sambuckeys to key servers, and import of new public
107ebfedea0SLionel Sambuckeys from other identities.
108ebfedea0SLionel Sambuc.Pp
109ebfedea0SLionel SambucThe
110ebfedea0SLionel Sambuc.Xr netpgp 1
111*0a6a1f1dSLionel Sambucutility should be used for file management and transformation \(emencryption,
112ebfedea0SLionel Sambucdecryption,
113ebfedea0SLionel Sambucsigning and verification of files.
114ebfedea0SLionel Sambuc.Pp
115ebfedea0SLionel SambucFor signing and encryption, a unique identity is needed.
116ebfedea0SLionel SambucThis identity is made up of a private and public key.
117ebfedea0SLionel SambucThe public key part is made available and known to everyone.
118ebfedea0SLionel SambucThe private key is kept secret, and known only to the user
119ebfedea0SLionel Sambucwho created the identity.
120ebfedea0SLionel SambucThe secret key is protected with a passphrase.
121ebfedea0SLionel Sambuc.Pp
122ebfedea0SLionel SambucIn rough terms, a digital signature
123ebfedea0SLionel Sambucis a digest of a file's contents,
124ebfedea0SLionel Sambucencrypted with the user's private key.
125ebfedea0SLionel SambucSince together, the private and public keys identify the user
126ebfedea0SLionel Sambucuniquely, the signature can be used to identify the exact version
127ebfedea0SLionel Sambucof the file, and any changes made to the file will mean that the
128ebfedea0SLionel Sambucsignature no longer matches.
129ebfedea0SLionel Sambuc.Pp
130ebfedea0SLionel SambucAs a corollary, the file can be transformed using a user's public key,
131ebfedea0SLionel Sambucinto text such that the contents can only be viewed by someone
132ebfedea0SLionel Sambucwith the corresponding private key.
133ebfedea0SLionel SambucThis is called encryption.
134ebfedea0SLionel Sambuc.Pp
135ebfedea0SLionel SambucThe
136ebfedea0SLionel Sambuc.Nm
137ebfedea0SLionel Sambucutility can be used to generate a new key-pair for a user.
138ebfedea0SLionel SambucAs mentioned before,
139ebfedea0SLionel Sambucthis key is in two parts, the public key (which is known
140ebfedea0SLionel Sambucby other people) and the private key.
141ebfedea0SLionel Sambuc.Pp
142ebfedea0SLionel SambucThe other use of
143ebfedea0SLionel Sambuc.Nm
144ebfedea0SLionel Sambucis to maintain keyrings.
145ebfedea0SLionel SambucKey and keyring management commands available are:
146ebfedea0SLionel Sambuc.Fl Fl export\-key ,
147ebfedea0SLionel Sambuc.Fl Fl find\-key ,
148ebfedea0SLionel Sambuc.Fl Fl generate\-key ,
149ebfedea0SLionel Sambuc.Fl Fl import\-key ,
150ebfedea0SLionel Sambucand
151ebfedea0SLionel Sambuc.Fl Fl list\-keys .
152ebfedea0SLionel SambucKeyrings are collections of public keys belonging to other users.
153ebfedea0SLionel SambucBy using other means of identification, it is possible to establish
154ebfedea0SLionel Sambucthe bona fides of other users.
155ebfedea0SLionel SambucOnce trust has been established, the public key of the other
156ebfedea0SLionel Sambucuser will be signed.
157ebfedea0SLionel SambucThe other user's public key can be added to our keyring.
158ebfedea0SLionel SambucThe other user will add our public key to their keyring.
159ebfedea0SLionel Sambuc.Pp
160ebfedea0SLionel SambucKeys can be listed, exported (i.e. made available to others),
161ebfedea0SLionel Sambucand imported (i.e. users who have signed our public key).
162ebfedea0SLionel Sambuc.Pp
163ebfedea0SLionel SambucKey and keyring management can be done with the
164ebfedea0SLionel Sambucfollowing commands:
165ebfedea0SLionel Sambuc.Bl -tag -width Ar
166ebfedea0SLionel Sambuc.It Fl Fl export\-key
167ebfedea0SLionel SambucDisplay the current public key in a format suitable for export.
168ebfedea0SLionel SambucThis can be used to place the keyring on one of the
169ebfedea0SLionel Sambucpublic key servers, for example.
170ebfedea0SLionel Sambuc.It Fl Fl find\-key
171ebfedea0SLionel SambucFind the appropriate public key from the current keyring.
172ebfedea0SLionel SambucIf no keyring is provided, the user's public keyring is used.
173ebfedea0SLionel Sambuc.It Fl Fl generate\-key
174ebfedea0SLionel SambucThis command is used to generate a new public and private key pair.
175ebfedea0SLionel SambucIf provided on the command line, the argument will be given to the
176ebfedea0SLionel Sambuckey generation routine to be used as the identity of the key.
177ebfedea0SLionel SambucThis is usually the email address and full name, but can be
178ebfedea0SLionel Sambucany identification token.
179ebfedea0SLionel SambucThe newly-generated keys are placed in a sub-directory of the
180ebfedea0SLionel Sambuc.Dq home directory
181ebfedea0SLionel Sambucwhich is created at key generation time.
182ebfedea0SLionel SambucAt present, only RSA keys can be generated.
183ebfedea0SLionel SambucThe hash algorithm and keysize can be specified on the command
184ebfedea0SLionel Sambucline.
185ebfedea0SLionel Sambuc.It Fl Fl import\-key
186ebfedea0SLionel SambucImport a public key as retrieved from one of the public key servers.
187ebfedea0SLionel SambucThis is in the form of a file which has previously been
188ebfedea0SLionel Sambucretrieved from elsewhere.
189ebfedea0SLionel Sambuc.It Fl Fl list\-keys
190ebfedea0SLionel SambucList all the public keys in the current keyring.
191ebfedea0SLionel SambucIf no keyring is provided, the user's public keyring is used.
192ebfedea0SLionel Sambuc.It Fl Fl list\-sigs
193ebfedea0SLionel SambucList all the public keys in the current keyring, along with
194ebfedea0SLionel Sambucthe sub-key signatures which provide the key with trust.
195ebfedea0SLionel SambucIf no keyring is provided, the user's public keyring is used.
196ebfedea0SLionel Sambuc.It Fl Fl trusted\-keys
197ebfedea0SLionel SambucPrints a list of keys in a more machine-readble format than is
198ebfedea0SLionel Sambucnormally used, which can be used as input to other parsing
199ebfedea0SLionel Sambucengines.
200ebfedea0SLionel SambucThe output from this command is sent to
201ebfedea0SLionel Sambuc.Dv stdout .
202ebfedea0SLionel SambucNormal key-matching rules apply.
203ebfedea0SLionel Sambuc.It Fl Fl version
204ebfedea0SLionel SambucPrint the version information from the
205ebfedea0SLionel Sambuc.Xr libnetpgp 3
206ebfedea0SLionel Sambuclibrary.
207ebfedea0SLionel Sambuc.El
208ebfedea0SLionel Sambuc.Pp
209ebfedea0SLionel SambucIn addition to one of the preceding commands, a number of qualifiers
210ebfedea0SLionel Sambucor options may be given.
211ebfedea0SLionel Sambuc.Bl -tag -width Ar
212ebfedea0SLionel Sambuc.It Fl Fl cipher Ar cipher\-algorithm
213ebfedea0SLionel SambucSpecify the cipher to be used for symmetric encryption.
214*0a6a1f1dSLionel SambucThe default cipher is
215*0a6a1f1dSLionel Sambuc.Dq CAST5 .
216ebfedea0SLionel Sambuc.It Fl Fl hash Ar hash\-algorithm
217ebfedea0SLionel SambucSpecify the hash algorithm which is used during fingerprint calculation.
218ebfedea0SLionel SambucFor reference, at the present time,
219ebfedea0SLionel Sambuc.Xr ssh-keygen 1
220ebfedea0SLionel Sambucuses
221ebfedea0SLionel Sambuc.Dq MD5
222ebfedea0SLionel Sambucfor its fingerprint values.
223ebfedea0SLionel Sambuc.It Fl Fl homedir Ar home\-directory
224ebfedea0SLionel SambucKeyrings are normally located, for historical reasons, within
225ebfedea0SLionel Sambucthe user's home directory in a subdirectory called
226ebfedea0SLionel Sambuc.Dq Pa .gnupg
227ebfedea0SLionel Sambucand this option specifies an alternative location in which to
228ebfedea0SLionel Sambucfind that sub-directory.
229ebfedea0SLionel Sambuc.It Fl Fl keyring Ar keyring
230ebfedea0SLionel SambucThis option specifies an alternative keyring to be used.
231ebfedea0SLionel SambucAll keyring operations will be relative to this alternative keyring.
232ebfedea0SLionel Sambuc.It Fl Fl numbits Ar numbits
233ebfedea0SLionel Sambucspecifies the number of bits to be used when generating a key.
234ebfedea0SLionel SambucThe default number of bits is 2048.
235ebfedea0SLionel SambucThis is considered the absolute
236ebfedea0SLionel Sambucminimum which should be chosen at the time of writing (2009).
237ebfedea0SLionel SambucDue to advances in computing power every year, this number should
238ebfedea0SLionel Sambucbe reviewed, and increased when it becomes easier to factor 2048
239ebfedea0SLionel Sambucbit numbers.
240ebfedea0SLionel Sambuc.It Fl Fl userid Ar userid
241ebfedea0SLionel SambucThis option specifies the user identity to be used for all operations.
242ebfedea0SLionel SambucThis identity can either be in the form of the full name, or as an
243ebfedea0SLionel Sambucemail address.
244ebfedea0SLionel SambucCare should be exercised with these ways of specifying the user identity,
245ebfedea0SLionel Sambucsince the
246ebfedea0SLionel Sambuc.Nm
247ebfedea0SLionel Sambucutility has no way of verifying that an email address is valid, or
248ebfedea0SLionel Sambucthat a key belongs to a certain individual.
249ebfedea0SLionel SambucThe trust for a signed key is given by the other signers of that key.
250ebfedea0SLionel SambucThe 16 hexadecimal digit user identity should be used when specifying
251*0a6a1f1dSLionel Sambucuser identities \(ememail addresses and names are provided as aliases.
252ebfedea0SLionel Sambuc.It Fl Fl pass\-fd Ns = Ns Ar fd
253ebfedea0SLionel SambucThis option is intended for the use of external programs which may
254ebfedea0SLionel Sambuclike to use the
255ebfedea0SLionel Sambuc.Xr libnetpgp 3
256ebfedea0SLionel Sambuclibrary through the
257ebfedea0SLionel Sambuc.Nm
258ebfedea0SLionel Sambucinterface, but have their own ways of retrieving and caching
259ebfedea0SLionel Sambucthe passphrase for the secret key.
260ebfedea0SLionel SambucIn this case, the
261ebfedea0SLionel Sambuc.Nm
262ebfedea0SLionel Sambucutility will read a line of text from the file descriptor
263ebfedea0SLionel Sambucpassed to it in the command line argument, rather than
264ebfedea0SLionel Sambucusing its own methods of retrieving the passphrase from
265ebfedea0SLionel Sambucthe user.
266ebfedea0SLionel Sambuc.It Fl Fl verbose
267ebfedea0SLionel SambucThis option can be used to view information during
268ebfedea0SLionel Sambucthe process of the
269ebfedea0SLionel Sambuc.Nm
270ebfedea0SLionel Sambucrequests.
271ebfedea0SLionel Sambuc.It Fl Fl ssh-keys
272ebfedea0SLionel Sambucspecifies that the public and private keys should be taken
273ebfedea0SLionel Sambucfrom the
274ebfedea0SLionel Sambuc.Xr ssh 1
275ebfedea0SLionel Sambuchost key files, usually found in
276ebfedea0SLionel Sambuc.Pa /etc/ssh/ssh_host_rsa_key
277ebfedea0SLionel Sambucand
278ebfedea0SLionel Sambuc.Pa /etc/ssh/ssh_host_rsa_key.pub
279ebfedea0SLionel Sambucfor the private and public host keys.
280ebfedea0SLionel Sambuc.It Fl Fl coredumps
281ebfedea0SLionel Sambucin normal processing,
282ebfedea0SLionel Sambucif an error occurs, the contents of memory are saved to disk, and can
283ebfedea0SLionel Sambucbe read using tools to analyse behaviour.
284ebfedea0SLionel SambucUnfortunately this can disclose information to people viewing
285ebfedea0SLionel Sambucthe core dump, such as secret keys, and passphrases protecting
286ebfedea0SLionel Sambucthose keys.
287ebfedea0SLionel SambucIn normal operation,
288ebfedea0SLionel Sambuc.Nm
289ebfedea0SLionel Sambucwill turn off the ability to save core dumps on persistent storage,
290ebfedea0SLionel Sambucbut selecting this option will allow core dumps to be written to disk.
291ebfedea0SLionel SambucThis option should be used wisely, and any core dumps should
292ebfedea0SLionel Sambucbe deleted in a secure manner when no longer needed.
293ebfedea0SLionel Sambuc.El
294ebfedea0SLionel Sambuc.Pp
295ebfedea0SLionel SambucIt is often useful to be able to refer to another user's identity by
296ebfedea0SLionel Sambucusing their
297ebfedea0SLionel Sambuc.Nm
298ebfedea0SLionel Sambuc.Dq fingerprint .
299ebfedea0SLionel SambucThis can be found in the output from normal
300ebfedea0SLionel Sambuc.Fl Fl list\-keys
301ebfedea0SLionel Sambucand
302ebfedea0SLionel Sambuc.Fl Fl list\-sigs
303ebfedea0SLionel Sambuccommands.
304ebfedea0SLionel Sambuc.Sh PASS PHRASES
305ebfedea0SLionel SambucThe pass phrase cannot be changed by
306ebfedea0SLionel Sambuc.Nm
307ebfedea0SLionel Sambuconce it has been chosen, and will
308ebfedea0SLionel Sambucbe used for the life of the key, so a wise choice is advised.
309ebfedea0SLionel SambucThe pass phrase should not be an easily guessable word or phrase,
310ebfedea0SLionel Sambucor related to information that can be gained through
311ebfedea0SLionel Sambuc.Dq social engineering
312ebfedea0SLionel Sambucusing search engines, or other public information retrieval methods.
313ebfedea0SLionel Sambuc.Pp
314ebfedea0SLionel Sambuc.Xr getpass 3
315ebfedea0SLionel Sambucwill be used to obtain the pass phrase from the user if it is
316ebfedea0SLionel Sambucneeded,
317ebfedea0SLionel Sambucsuch as during signing or encryption, or key generation,
318ebfedea0SLionel Sambucso that any secret information cannot be viewed by other users
319ebfedea0SLionel Sambucusing the
320ebfedea0SLionel Sambuc.Xr ps 1
321ebfedea0SLionel Sambucor
322ebfedea0SLionel Sambuc.Xr top 1
323ebfedea0SLionel Sambuccommands, or by looking over the shoulder at the screen.
324ebfedea0SLionel Sambuc.Pp
325ebfedea0SLionel SambucSince the public and private key pair can be used to verify
326ebfedea0SLionel Sambuca person's identity, and since identity theft can have
327ebfedea0SLionel Sambucfar-reaching consequences, users are strongly encouraged to
328ebfedea0SLionel Sambucenter their pass phrases only when prompted by the application.
329ebfedea0SLionel Sambuc.Sh EXIT STATUS
330ebfedea0SLionel SambucThe
331ebfedea0SLionel Sambuc.Nm
332ebfedea0SLionel Sambucutility will return 0 for success,
333ebfedea0SLionel Sambuc1 if the file's signature does not match what was expected,
334ebfedea0SLionel Sambucor 2 if any other error occurs.
335ebfedea0SLionel Sambuc.Sh EXAMPLES
336ebfedea0SLionel Sambuc.Bd -literal
337ebfedea0SLionel Sambuc% netpgpkeys --ssh-keys --sshkeyfile=/etc/ssh/ssh_host_rsa_key.pub --list-keys --hash=md5
338ebfedea0SLionel Sambuc1 key
339ebfedea0SLionel Sambucpub 1024/RSA (Encrypt or Sign) fcdd1c608bef4c4b 2008-08-11
340ebfedea0SLionel SambucKey fingerprint: e935 902d ebf1 76ba fcdd 1c60 8bef 4c4b
341ebfedea0SLionel Sambucuid              osx-vm1.crowthorne.alistaircrooks.co.uk (/etc/ssh/ssh_host_rsa_key.pub) <root@osx-vm1.crowthorne.alistaircrooks.co.uk>
342ebfedea0SLionel Sambuc
343ebfedea0SLionel Sambuc% ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub
344ebfedea0SLionel Sambuc1024 e9:35:90:2d:eb:f1:76:ba:fc:dd:1c:60:8b:ef:4c:4b /etc/ssh/ssh_host_rsa_key.pub (RSA)
345ebfedea0SLionel Sambuc%
346ebfedea0SLionel Sambuc.Ed
347ebfedea0SLionel Sambuc.Pp
348ebfedea0SLionel SambucThe following is an example of RSA key generation:
349ebfedea0SLionel Sambuc.Bd -literal
350ebfedea0SLionel Sambuc% netpgpkeys --generate\-key
351ebfedea0SLionel Sambucnetpgp: default key set to "C0596823"
352ebfedea0SLionel Sambucpub 2048/RSA (Encrypt or Sign) 5bc707d1b495aaf2 2010-04-14
353ebfedea0SLionel SambucKey fingerprint: 08cb 4867 eeed 454c ce30 610d 5bc7 07d1 b495 aaf2
354ebfedea0SLionel Sambucuid              RSA 2048-bit key \*[Lt]agc@localhost\*[Gt]
355ebfedea0SLionel Sambucnetpgp: generated keys in directory /home/agc/.gnupg/5bc707d1b495aaf2
356ebfedea0SLionel Sambuc% ls -al /home/agc/.gnupg/5bc707d1b495aaf2
357ebfedea0SLionel Sambuctotal 8
358ebfedea0SLionel Sambucdrwx------  2 agc  agc   512 Apr 13 18:25 .
359ebfedea0SLionel Sambucdrwx------  6 agc  agc   512 Apr 13 18:25 ..
360ebfedea0SLionel Sambuc-rw-------  1 agc  agc   596 Apr 13 18:25 pubring.gpg
361ebfedea0SLionel Sambuc-rw-------  1 agc  agc  1284 Apr 13 18:25 secring.gpg
362ebfedea0SLionel Sambuc%
363ebfedea0SLionel Sambuc% netpgpkeys --list-keys --home ~/.gnupg/5bc707d1b495aaf2
364ebfedea0SLionel Sambuc1 key
365ebfedea0SLionel Sambucpub 2048/RSA (Encrypt or Sign) 5bc707d1b495aaf2 2010-04-14
366ebfedea0SLionel SambucKey fingerprint: 08cb 4867 eeed 454c ce30 610d 5bc7 07d1 b495 aaf2
367ebfedea0SLionel Sambucuid              RSA 2048-bit key \*[Lt]agc@localhost\*[Gt]
368ebfedea0SLionel Sambuc
369ebfedea0SLionel Sambuc%
370ebfedea0SLionel Sambuc.Ed
371ebfedea0SLionel Sambuc.Sh SEE ALSO
372ebfedea0SLionel Sambuc.Xr netpgp 1 ,
373ebfedea0SLionel Sambuc.Xr ssh 1 ,
374ebfedea0SLionel Sambuc.Xr ssh-keygen 1 ,
375ebfedea0SLionel Sambuc.Xr getpass 3 ,
376ebfedea0SLionel Sambuc.\" .Xr libbz2 3 ,
377ebfedea0SLionel Sambuc.Xr libnetpgp 3 ,
378ebfedea0SLionel Sambuc.Xr ssl 3 ,
379ebfedea0SLionel Sambuc.Xr zlib 3
380ebfedea0SLionel Sambuc.Sh STANDARDS
381*0a6a1f1dSLionel Sambuc.Rs
382*0a6a1f1dSLionel Sambuc.%A J. Callas
383*0a6a1f1dSLionel Sambuc.%A L. Donnerhacke
384*0a6a1f1dSLionel Sambuc.%A H. Finney
385*0a6a1f1dSLionel Sambuc.%A D. Shaw
386*0a6a1f1dSLionel Sambuc.%A R. Thayer
387*0a6a1f1dSLionel Sambuc.%D November 2007
388*0a6a1f1dSLionel Sambuc.%R RFC 4880
389*0a6a1f1dSLionel Sambuc.%T OpenPGP Message Format
390*0a6a1f1dSLionel Sambuc.Re
391ebfedea0SLionel Sambuc.Sh HISTORY
392ebfedea0SLionel SambucThe
393ebfedea0SLionel Sambuc.Nm
394ebfedea0SLionel Sambuccommand first appeared in
395ebfedea0SLionel Sambuc.Nx 6.0 .
396ebfedea0SLionel Sambuc.Sh AUTHORS
397ebfedea0SLionel Sambuc.An -nosplit
398ebfedea0SLionel Sambuc.An Ben Laurie ,
399ebfedea0SLionel Sambuc.An Rachel Willmer ,
400ebfedea0SLionel Sambucand overhauled and rewritten by
401ebfedea0SLionel Sambuc.An Alistair Crooks Aq Mt agc@NetBSD.org .
402ebfedea0SLionel SambucThis manual page was also written by
403ebfedea0SLionel Sambuc.An Alistair Crooks .
404