Running HTTPS service
2006/08/22
Pegasus uses TLS library of Plan9 4ed for HTTPS support.
- install cert and key to /sys/lib/tls
The followings are an example:
term% cd /sys/lib/tls
term% auth/rsagen -t 'service=tls owner=*' >key
term% auth/rsa2x509 'C=US CN=*.cs.bell-labs.com' key | auth/pemencode CERTIFICATE >cert
see rsa(8) for more details.
- become user web and run:
/usr/local/bin/386/httpd -us -p443 -c/sys/lib/ssl/cert.pem
Attached program "mon" will do this more smartly. My starting script is:
c=/sys/lib/tls/cert
r=/sys/lib/tls/key
$b/mon -du web -r $r $b/httpd -suM -p443 -c $c