Skip to content

Commit

Permalink
Merge pull request #3189 from dmcgowan/update-server-alpn
Browse files Browse the repository at this point in the history
Add server next protos configuration
  • Loading branch information
thaJeztah authored Jan 3, 2025
2 parents e8ecf83 + 9a32e27 commit 8c19597
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ca/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ import (

cfconfig "github.com/cloudflare/cfssl/config"
events "github.com/docker/go-events"
"github.com/opencontainers/go-digest"
"github.com/pkg/errors"
"google.golang.org/grpc/credentials"

"github.com/moby/swarmkit/v2/api"
"github.com/moby/swarmkit/v2/connectionbroker"
"github.com/moby/swarmkit/v2/identity"
"github.com/moby/swarmkit/v2/log"
"github.com/moby/swarmkit/v2/watch"
"github.com/opencontainers/go-digest"
"github.com/pkg/errors"
"google.golang.org/grpc/credentials"
)

const (
Expand Down Expand Up @@ -649,6 +650,7 @@ func NewServerTLSConfig(certs []tls.Certificate, rootCAPool *x509.CertPool) (*tl
ClientCAs: rootCAPool,
PreferServerCipherSuites: true,
MinVersion: tls.VersionTLS12,
NextProtos: alpnProtoStr,
}, nil
}

Expand Down

0 comments on commit 8c19597

Please sign in to comment.