From: Sergey Matveev Date: Sat, 30 Oct 2021 17:09:18 +0000 (+0300) Subject: Certificate and key can be in single file X-Git-Tag: v0.1.0~51 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;ds=sidebyside;h=bcf1a82c21e1098bfafd8aac399f8fb3cdc1e4b2;p=tofuproxy.git Certificate and key can be in single file --- diff --git a/.gitignore b/.gitignore index 7b40b4d..7af3e1b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,3 @@ /ccerts /cert.pem /certs -/prv.pem diff --git a/cmd/tofuproxy/main.go b/cmd/tofuproxy/main.go index b3f2a14..3cb9636 100644 --- a/cmd/tofuproxy/main.go +++ b/cmd/tofuproxy/main.go @@ -33,7 +33,7 @@ import ( func main() { crtPath := flag.String("cert", "cert.pem", "Path to server X.509 certificate") - prvPath := flag.String("key", "prv.pem", "Path to server PKCS#8 private key") + prvPath := flag.String("key", "cert.pem", "Path to server PKCS#8 private key") bind := flag.String("bind", "[::1]:8080", "Bind address") certs := flag.String("certs", "./certs", "Directory with pinned certificates") ccerts := flag.String("ccerts", "./ccerts", "Directory with client certificates")