123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- .TH TLSSRV 8
- .SH NAME
- tlssrv, tlsclient, tlssrvtunnel, tlsclienttunnel \- TLS server and client
- .SH SYNOPSIS
- .PP
- .B tlssrv
- [
- .B -c
- .I cert.pem
- ]
- [
- .B -l
- .I
- logfile
- ]
- [
- .B -r
- .I remotesys
- ]
- .I cmd
- [
- .I args ...
- ]
- .PP
- .B tlsclient
- [
- .B -t
- .I trustedkeys
- ]
- [
- .B -x
- .I excludedkeys
- ]
- .I address
- .PP
- .B tlssrvtunnel
- .I plain-addr
- .I crypt-addr
- .I cert.pem
- .PP
- .B tlsclienttunnel
- .I crypt-addr
- .I plain-addr
- .I trustedkeys
- .SH DESCRIPTION
- .I Tlssrv
- is a helper program, typically exec'd in a
- .B /bin/service
- file to establish an SSL or TLS connection before launching
- .I cmd
- .IR args ;
- a typical command might start the IMAP or HTTP server.
- .I Cert.pem
- is the server certificate;
- .IR factotum (4)
- should hold the corresponding private key.
- The specified
- .I logfile
- is by convention the same as for the target server.
- .I Remotesys
- is mainly used for logging.
- .PP
- .I Tlsclient
- is the reverse of
- .IR tlssrv :
- it dials
- .IR address ,
- starts TLS,
- and then relays
- between the network connection
- and standard input and output.
- If the
- .B -t
- flag
- (and, optionally, the
- .B -x
- flag)
- is given, the remote server must present a key
- whose SHA1 hash is listed in
- the file
- .I trustedkeys
- but not in the file
- .IR excludedkeys .
- See
- .IR thumbprint (6)
- for more information.
- .PP
- .I Tlssrvtunnel
- and
- .I tlsclienttunnel
- use these tools and
- .I listen1
- (see
- .IR listen (8))
- to provide TLS network tunnels, allowing legacy
- application to take advantage of TLS encryption.
- .SH EXAMPLES
- .SH FILES
- .TP
- .B /sys/lib/tls
- .SH SOURCE
- .B /sys/src/cmd/tlssrv.c
- .br
- .B /sys/src/cmd/tlsclient.c
- .br
- .B /rc/bin/tlssrvtunnel
- .br
- .B /rc/bin/tlsclienttunnel
- .SH "SEE ALSO"
- .IR factotum (4),
- .IR listen (8),
- .IR rsa (8)
- .br
- Unix's
- .I stunnel
|