shithub: 9ferno

ref: b502a62da2ec6058923db94f87ecc2d29db2fa77
dir: /man/8/getauthinfo/

View raw version
getauthinfo \- obtain a certificate for authentication
.BI getauthinfo " keyname"
.B wm/getauthinfo
.I Getauthinfo
makes contact with
.IR logind (8)
on a `signer', or certifying authority, with which the user
has previously been registered using
.IR changelogin (8),
to obtain a certificate that
can later be presented to other Inferno services to authenticate the user.
.I keyname
starts with a `/', the certificate is stored there; otherwise, it is stored in the file
.BI /usr/ user /keyring/ keyname,
.I user
is the name in
.B /dev/user
.IR cons (3)).
The directory
.BI /usr/ user /keyring
must exist.
The user is prompted for the following:
The name of the signing server, for example
.BR .
The default is the default signer for the site:
the value of
in the local network configuration database
.IR ndb (6)).
remote user name
The name of the user for whom a certificate is to be obtained. The default is the current user name in
.BR /dev/user .
The user's password. The password entered on the client must match the password
previously stored on the server using
.IR changelogin (8),
or a certificate will be refused.
save in file?
The default is `no'. If the user responds `yes', the certificate is written directly to the file.
.I getauthinfo
becomes a file server, serving
a secure temporary file bound over
the file name above (because that is where applications look for it).
The temporary will disappear if the name is unmounted, or Inferno is rebooted.
Note that the certificate will expire at or before expiry of the password entry
on the signer.
The signer needs its own key to endorse the certificates that it gives to clients.
If a user requests a certificate with
.IR getauthinfo (8)
before the signer's key is created on the signer (eg,
.IR createsignerkey (8)),
then the request will be rejected with a suitable diagnostic
.IR logind (8).
.SS "File servers"
Machines that will be file servers must obtain a certificate and save the certificate in a key file named
.BR default ,
.B "getauthinfo default"
The user invoking
.I getauthinfo
must be the same user who later runs
.IR svc (8)
to start the machine's services.
.SS "File server clients"
Machines that wish to be authenticated clients of file servers must obtain a certificate and store the certificate in a file named
.IB net ! machine.
The file name must match exactly the
server address given to
.I mount
.IR bind (1)).
To set the key, use
.BI getauthinfo " net" ! host
.SS Window system interface
.I Getauthinfo
has a visual counterpart
.B wm/getauthinfo
for use under
.IR wm (1).
It takes no arguments.
It displays a window prompting for all the information it needs,
and offering apparently sensible defaults.
Apart from the different interface, its function is otherwise
the same as the command line version.
.TF /usr/username/keyring/net!machine
.BI /usr/ user /keyring/ net ! machine
where a certificate is stored on a client machine
.BI /usr/ user /keyring/default
where a certificate is stored on a file server
.B /lib/ndb/local
contains the default host name of the signer
.B /appl/cmd/getauthinfo.b
.B /appl/wm/getauthinfo.b
.IR bind (1),
.IR changelogin (8),
.IR createsignerkey (8)