Skip to content

Commit

Permalink
pkg/transport: don't set certificates on tls config
Browse files Browse the repository at this point in the history
  • Loading branch information
roboll authored and gyuho committed Apr 13, 2018
1 parent b705f6f commit 88c078d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/transport/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,15 +202,14 @@ func (info TLSInfo) baseConfig() (*tls.Config, error) {
info.Logger = zap.NewNop()
}

tlsCert, err := tlsutil.NewCert(info.CertFile, info.KeyFile, info.parseFunc)
_, err := tlsutil.NewCert(info.CertFile, info.KeyFile, info.parseFunc)
if err != nil {
return nil, err
}

cfg := &tls.Config{
Certificates: []tls.Certificate{*tlsCert},
MinVersion: tls.VersionTLS12,
ServerName: info.ServerName,
MinVersion: tls.VersionTLS12,
ServerName: info.ServerName,
}

if info.AllowedCN != "" {
Expand Down

0 comments on commit 88c078d

Please sign in to comment.