From fdc8525abe8b32a40ac64f3b764fe7072a6c1c27 Mon Sep 17 00:00:00 2001 From: paadi Date: Tue, 14 Oct 2025 21:29:42 +0200 Subject: [PATCH] backend/main.go aktualisiert fix wrong order and description of ssl certificate --- backend/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/main.go b/backend/main.go index b40d8ae..5180a28 100644 --- a/backend/main.go +++ b/backend/main.go @@ -33,8 +33,8 @@ func main() { organization := flag.String("organization", "", "self signed ciertificate organization") port := flag.Uint("port", 9500, "server listening port") https := flag.Bool("https", false, "serves as https needs flag -cert and -chain") - sslCert := flag.String("cert", "", "ssl certificate path") - sslChain := flag.String("chain", "", "ssl chain path") + sslKey := flag.String("privkey", "", "ssl private key path") + sslFullchain := flag.String("fullchain", "", "ssl fullchain path") debug := flag.Bool("debug", false, "log debug") flag.Parse() @@ -171,7 +171,7 @@ func main() { // start https server logger.Info("main", fmt.Sprintf("https listen on ip: %s port: %d", *ip, *port)) - if err := s.ServeHttps(*ip, *port, cert.Cert{Organization: *organization, CertFile: *sslCert, KeyFile: *sslChain}); err != nil { + if err := s.ServeHttps(*ip, *port, cert.Cert{Organization: *organization, CertFile: *sslFullchain, KeyFile: *sslKey}); err != nil { logger.Error("main", "error https server "+err.Error()) } return