Skip to content

Commit

Permalink
removing extra logic from load client tls config
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-bansal committed Oct 26, 2020
1 parent 291e939 commit 5c77e01
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions x/tls_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@ func LoadClientTLSConfig(v *viper.Viper) (*tls.Config, error) {
// 3. optionally load the client cert files
certFile := v.GetString("tls_cert")
keyFile := v.GetString("tls_key")
if v.GetBool("tls_enable_inter_node") && (certFile == "" || keyFile == "") {
return nil, errors.Errorf("inter node tls is enabled but client certs are not provided. " +
"Intern Node is TLS is always client authenticated. Please provide --tls_cert and --tls_key")
}
if certFile != "" && keyFile != "" {
cert, err := tls.LoadX509KeyPair(certFile, keyFile)
if err != nil {
Expand Down

0 comments on commit 5c77e01

Please sign in to comment.