X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Frestapi%2Fserver.go;fp=pkg%2Frestapi%2Fserver.go;h=8a6edbbced4ea82b13797b638dcb57af6353a4d6;hb=5152bd39551f19139752d89a795327ca9dd189db;hp=978fbeef52cbdbb64268d80628b2b8485b80a771;hpb=272fb5b36779f68a944ca317fa6a6159da0128e3;p=ric-plt%2Fa1.git diff --git a/pkg/restapi/server.go b/pkg/restapi/server.go index 978fbee..8a6edbb 100644 --- a/pkg/restapi/server.go +++ b/pkg/restapi/server.go @@ -45,7 +45,7 @@ import ( flags "github.com/jessevdk/go-flags" "golang.org/x/net/netutil" - "gerrit.o-ran-sc.org/r/ric-plt/a1/pkg/restapi/operations" + "gerrit.o-ran-sc.org/r/ric-plt/a1/pkg/restapi/operations" ) const ( @@ -325,9 +325,6 @@ func (s *Server) Serve() (err error) { s.Fatalf("no certificate was configured for TLS") } - // must have at least one certificate or panics - httpsServer.TLSConfig.BuildNameToCertificate() - configureServer(httpsServer, "https", s.httpsServerL.Addr().String()) servers = append(servers, httpsServer)