tlstun

simple go program to add tls support to other listeners
git clone https://git.parazyd.org/tlstun
Log | Files | Refs | README | LICENSE

commit cdae8deef3510440ec1b8b2126b52b792198a2f5
parent 8547ddc15135893442ef34558a3dffbbb92d4fe9
Author: parazyd <parazyd@dyne.org>
Date:   Tue,  9 Jul 2019 15:37:33 +0200

Use long flag names.

Diffstat:
Mtlstun.go | 15++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/tlstun.go b/tlstun.go @@ -32,13 +32,14 @@ import ( ) var ( - cacert = flag.String("ca", "ca.pem", "Path for CA certificate file") - cert = flag.String("c", "server.pem", "Path for Certificate file") - key = flag.String("k", "server-key.pem", "Path for Key file") - listen = flag.String("l", "127.0.0.1:7443", "Listen address") - forward = flag.String("f", "127.0.0.1:72", "Forward address") - client = flag.Bool("vc", false, "Do client verification") - verbose = flag.Bool("v", false, "Verbose mode") + cacert = flag.String("cacert", "ca.pem", "Path for CA certificate file") + cert = flag.String("cert", "server.pem", "Path for Certificate file") + key = flag.String("key", "server-key.pem", "Path for Key file") + listen = flag.String("listen", "127.0.0.1:7443", "Listen address") + forward = flag.String("forward", "127.0.0.1:72", "Forward address") + client = flag.Bool("verifyclient", false, "Do client verification") + verbose = flag.Bool("verbose", false, "Verbose mode") + tlsver = flag.Int("tlsver", 13, "TLS version to use (11, 12, 13)") ) func tlsConfig(cert, key string) (*tls.Config, error) {