3 tlssrv, tlsclient, tlssrvtunnel, tlsclienttunnel \- TLS server and client
47 is a helper program, typically exec'd in a
49 file to establish an SSL or TLS connection before launching
52 a typical command might start the IMAP or HTTP server.
54 is the server certificate;
56 should hold the corresponding private key.
59 is by convention the same as for the target server.
61 is mainly used for logging.
70 between the network connection
71 and standard input and output.
78 is given, the remote server must present a key
79 whose SHA1 hash is listed in
95 to provide TLS network tunnels, allowing legacy
96 application to take advantage of TLS encryption.
98 Listen for TLS-encrypted IMAP by creating a server certificate
99 .B /sys/lib/tls/imap.pem
100 and a listener script
101 .B /bin/service.auth/tcp993
106 exec tlssrv -c/sys/lib/tls/imap.pem -limap4d -r`{cat $3/remote} \e
107 /bin/ip/imap4d -p -dyourdomain -r`{cat $3/remote} \e
111 Interact with the server, putting the appropriate hash into
116 tlsclient -t /sys/lib/tls/mail tcp!server!imaps
119 Create a TLS-encrypted VNC connection from a client on
126 mosc% tlssrvtunnel tcp!moscvax!5903 tcp!*!12345 \e
127 /usr/you/lib/cert.pem
128 krem% tlsclienttunnel tcp!moscvax!12345 tcp!*!5905 \e
129 /usr/you/lib/cert.thumb
133 (The port numbers passed to the VNC tools are offset by 5900 from the
134 actual TCP port numbers.)
139 .B /sys/src/cmd/tlssrv.c
141 .B /sys/src/cmd/tlsclient.c
143 .B /rc/bin/tlssrvtunnel
145 .B /rc/bin/tlsclienttunnel