shithub: tlssrv.sni

Download patch

ref: 6fbda982944e317c7d9871ef6d32336f549fba6c
parent: a8a35ee8f3dd514407206a3b09578bb66f06f097
author: igor <igor@mux>
date: Thu Jan 25 05:59:29 EST 2024

Fix typos and install in /bin instead of $user/bin.

--- a/README
+++ b/README
@@ -71,8 +71,8 @@
 [tlssrv(8)](http://man.9front.org/8/tlssrv) for more examples on how
 to use RSA keys.
 
-Now it is time to create certificate signing request (i.e.
-`mux.9lab.org.csr`) files:
+Now it is time to create certificate signing requests (i.e.
+`mux.9lab.org.csr`):
 
 ```
 % auth/rsa2csr 'CN=9lab.org' certificate.key \
@@ -117,7 +117,7 @@
 ```
 % cat /bin/service/tcp443
 #!/bin/rc
-exec /bin/tlssrv -c/sys/lib/tls/acmed/9lab.org.crt -ltcp80 -r`{cat $3/remote} /bin/tcp80 `{cat $3/remote}>>[2]/sys/log/tcp80
+exec tlssrv -c/sys/lib/tls/acmed/9lab.org.crt -ltcp80 -r`{cat $3/remote} /bin/tcp80 `{cat $3/remote}>>[2]/sys/log/tcp80
 ```
 
 If you already have `/bin/service/tcp443` with a certificate setup you
--- a/mkfile
+++ b/mkfile
@@ -1,6 +1,6 @@
 </$objtype/mkfile
 
-BIN=$home/bin/$objtype
+BIN=/bin/$objtype
 TARG=tlssrv
 OFILES=tlssrv.$O tlshand.$O
 HFILES=/sys/include/libsec.h