Move everything from /var/adm to /var/log
[unleashed.git] / share / man / man8 / newkey.8
blob81d2debb3c9dd30538059bb40fdd0a9169a2373b
1 '\" te
2 .\" Copyright (C) 2005, Sun Microsystems, Inc. All Rights Reserved
3 .\" Copyright 1989 AT&T
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH NEWKEY 8 "Feb 25, 2017"
8 .SH NAME
9 newkey \- create a new Diffie-Hellman key pair in the publickey database
10 .SH SYNOPSIS
11 .LP
12 .nf
13 \fBnewkey\fR \fB-h\fR \fIhostname\fR [\fB-s\fR nis | files | ldap]
14 .fi
16 .LP
17 .nf
18 \fBnewkey\fR \fB-u\fR \fIusername\fR [\fB-s\fR nis | files | ldap]
19 .fi
21 .SH DESCRIPTION
22 .LP
23 \fBnewkey\fR establishes new public keys for users and machines on the network.
24 These keys are needed when using secure \fBRPC\fR or secure \fBNFS\fR service.
25 .sp
26 .LP
27 \fBnewkey\fR prompts for a password for the given \fIusername\fR or
28 \fBhostname\fR and then creates a new public/secret Diffie-Hellman 192 bit key
29 pair for the user or host. The secret key is encrypted with the given password.
30 The key pair can be stored in the \fB/etc/publickey\fR file or the NIS
31 \fBpublickey\fR map.
32 .sp
33 .LP
34 \fBnewkey\fR consults the \fBpublickey\fR entry in the name service switch
35 configuration file (see \fBnsswitch.conf\fR(4)) to determine which naming
36 service is used to store the secure \fBRPC\fR keys. If the \fBpublickey\fR
37 entry specifies a unique name service, \fBnewkey\fR will add the key in the
38 specified name service. However, if there are multiple name services listed,
39 \fBnewkey\fR cannot decide which source to update and will display an error
40 message. The user is required to specify the source explicitly with the
41 \fB-s\fR option.
42 .sp
43 .LP
44 In the case of NIS, \fBnewkey\fR should be run by the superuser on the master
45 NIS server for that domain.
46 .sp
47 .LP
48 In the case of LDAP, \fBnewkey\fR should be run by the superuser on a machine
49 that also recognizes the directory manager's bind distinguished name (DN) and
50 password to perform an LDAP update for the host.
51 .SH OPTIONS
52 .ne 2
53 .na
54 \fB\fB-h\fR \fIhostname\fR\fR
55 .ad
56 .RS 15n
57 Create a new public/secret key pair for the privileged user at the given
58 \fBhostname\fR. Prompts for a password for the given \fBhostname\fR.
59 .RE
61 .sp
62 .ne 2
63 .na
64 \fB\fB-u\fR \fIusername\fR\fR
65 .ad
66 .RS 15n
67 Create a new public/secret key pair for the given \fIusername\fR. Prompts for a
68 password for the given \fIusername\fR.
69 .RE
71 .sp
72 .ne 2
73 .na
74 \fB\fB-s\fR \fBnis\fR\fR
75 .ad
76 .br
77 .na
78 \fB\fB-s\fR \fBfiles\fR\fR
79 .ad
80 .br
81 .na
82 \fB\fB-s\fR \fBldap\fR\fR
83 .ad
84 .RS 15n
85 Update the database in the specified source:
86 \fBnis\fR (for NIS), \fBfiles\fR, or \fBldap\fR (LDAP). Other sources may be
87 available in the future.
88 .RE
90 .SH SEE ALSO
91 .LP
92 \fBchkey\fR(1), \fBkeylogin\fR(1),
93 \fBnsswitch.conf\fR(4), \fBpublickey\fR(4), \fBattributes\fR(5)