newkey(1M) System Administration Commands newkey(1M)NAMEnewkey - create a new Diffie-Hellman key pair in the publickey database
SYNOPSISnewkey-h hostname [-s nis | files | ldap]
newkey-u username [-s nis | files | ldap]
DESCRIPTIONnewkey establishes new public keys for users and machines on the net‐
work. These keys are needed when using secure RPC or secure NFS ser‐
vice.
newkey prompts for a password for the given username or hostname and
then creates a new public/secret Diffie-Hellman 192 bit key pair for
the user or host. The secret key is encrypted with the given password.
The key pair can be stored in the /etc/publickey file or the NIS pub‐
lickey map.
newkey consults the publickey entry in the name service switch configu‐
ration file (see nsswitch.conf(4)) to determine which naming service is
used to store the secure RPC keys. If the publickey entry specifies a
unique name service, newkey will add the key in the specified name ser‐
vice. However, if there are multiple name services listed, newkey can‐
not decide which source to update and will display an error message.
The user is required to specify the source explicitly with the -s
option.
In the case of NIS, newkey should be run by the superuser on the master
NIS server for that domain.
In the case of LDAP, newkey should be run by the superuser on a machine
that also recognizes the directory manager's bind distinguished name
(DN) and password to perform an LDAP update for the host.
OPTIONS-h hostname Create a new public/secret key pair for the privileged
user at the given hostname. Prompts for a password for
the given hostname.
-u username Create a new public/secret key pair for the given user‐
name. Prompts for a password for the given username.
-s nis Update the database in the specified source: nis (for
-s files NIS), files, or ldap (LDAP). Other sources may be avail‐
-s ldap able in the future.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
┌─────────────────────────────┬─────────────────────────────┐
│ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
├─────────────────────────────┼─────────────────────────────┤
│Availability │SUNWcs │
└─────────────────────────────┴─────────────────────────────┘
SEE ALSOchkey(1), keylogin(1), nsswitch.conf(4), publickey(4), attributes(5)SunOS 5.11 11 Dec 2009 newkey(1M)