3 tlssrv, tlsclient, tlssrvtunnel, tlsclienttunnel \- TLS server and client
54 is a helper program, typically exec'd in a
56 file to establish an SSL or TLS connection before launching
59 a typical command might start the IMAP or HTTP server.
61 is the server certificate;
63 should hold the corresponding private key.
66 is by convention the same as for the target server.
68 is mainly used for logging.
77 between the network connection
78 and standard input and output.
81 flag enables some debug output.
82 Specifying a certificate in pem(8) format with the
84 flag, causes the client to submit this certificate upon
85 server's request. A corresponding key has to be present in
93 is given, the remote server must present a key
94 whose SHA1 hash is listed in
101 for more information.
110 to provide TLS network tunnels, allowing legacy
111 application to take advantage of TLS encryption.
113 Listen for TLS-encrypted IMAP by creating a server certificate
114 .B /sys/lib/tls/imap.pem
115 and a listener script
116 .B /bin/service.auth/tcp993
121 exec tlssrv -c/sys/lib/tls/imap.pem -limap4d -r`{cat $3/remote} \e
122 /bin/ip/imap4d -p -dyourdomain -r`{cat $3/remote} \e
126 Interact with the server, putting the appropriate hash into
131 tlsclient -t /sys/lib/tls/mail tcp!server!imaps
134 Create a TLS-encrypted VNC connection from a client on
141 mosc% tlssrvtunnel tcp!moscvax!5903 tcp!*!12345 \e
142 /usr/you/lib/cert.pem
143 krem% tlsclienttunnel tcp!moscvax!12345 tcp!*!5905 \e
144 /usr/you/lib/cert.thumb
148 (The port numbers passed to the VNC tools are offset by 5900 from the
149 actual TCP port numbers.)
154 .B /sys/src/cmd/tlssrv.c
156 .B /sys/src/cmd/tlsclient.c
158 .B /rc/bin/tlssrvtunnel
160 .B /rc/bin/tlsclienttunnel