]> Sergey Matveev's repositories - tofuproxy.git/commitdiff
Certificate and key can be in single file
authorSergey Matveev <stargrave@stargrave.org>
Sat, 30 Oct 2021 17:09:18 +0000 (20:09 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 30 Oct 2021 17:09:18 +0000 (20:09 +0300)
.gitignore
cmd/tofuproxy/main.go

index 7b40b4dde8f3d2535789b98a4e940259890de79b..7af3e1b5d458a512a8259370b8f9be9935bec66a 100644 (file)
@@ -2,4 +2,3 @@
 /ccerts
 /cert.pem
 /certs
-/prv.pem
index b3f2a14b76decaa0efd99952d7bff9d0d9c2a3a9..3cb96364316e411d33951a9e33949161739a4348 100644 (file)
@@ -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")