tlsgate

TLS reverse proxy
git clone git://git.akobets.xyz/tlsgate
Log | Files | Refs | README | LICENSE

commit 9e09a6a11c484eb9f92888c4692eb742891a4dee
parent a8b0330bcdd0240112f020330a990b2e9cf13742
Author: Artem Kobets <artem@akobets.xyz>
Date:   Mon, 10 Aug 2020 18:34:38 +0300

change -a -> -C flag

Diffstat:
Mmain.c | 5+++--
Mtlsgate.1 | 4++--
2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/main.c b/main.c @@ -1,3 +1,4 @@ +#include <err.h> #include <errno.h> #include <signal.h> #include <stdio.h> @@ -30,7 +31,7 @@ void usage() { die( - "usage: %s -c cert -k key [-a ca]\n" + "usage: %s -c cert -k key [-C ca]\n" " [-h host] -p port [-H host] [-P port] [-U file]\n" " [-n proc-num]\n", argv0 @@ -64,7 +65,7 @@ main(int argc, char **argv) case 'k': key_file = EARGF(usage()); break; - case 'a': + case 'C': ca_file = EARGF(usage()); break; case 'n': diff --git a/tlsgate.1 b/tlsgate.1 @@ -2,7 +2,7 @@ .SH NAME tlsgate \- TLS reverse proxy .SH SYNOPSIS -.B tlsgate -c cert -k key [-a ca] [-h host] +.B tlsgate -c cert -k key [-C ca] [-h host] -p port [-H host] [-P port] [-U file] [-n proc-num] .SH DESCRIPTION @@ -17,7 +17,7 @@ Path to certificate. .B \-k key Path to private key. .TP -.B \-a ca +.B \-C ca Path to CA root certificates. .TP .B \-h host