diff --git a/server/server.go b/server/server.go index 4b075ba..05f8f5b 100644 --- a/server/server.go +++ b/server/server.go @@ -94,7 +94,9 @@ func New(cfg Config) (*Server, error) { proto.RegisterRoutesServer(gs, &Route{Server: s}) proto.RegisterTokensServer(gs, &Token{Server: s}) - l, err := net.Listen("tcp", cfg.GRPCAddr) + l, err := tls.Listen("tcp", cfg.GRPCAddr, &tls.Config{ + GetCertificate: m.GetCertificate, + }) if err != nil { return nil, err }