Skip to content

Commit

Permalink
Remove requiring CA for TLS connection (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
feedmeapples authored Jul 12, 2022
1 parent 1f50539 commit b9e5276
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions server/rpc/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,5 @@ func validateTLS(cfg *config.TLS) error {
return fmt.Errorf("cannot specify TLS CA file and CA data at the same time")
}

if strings.TrimSpace(cfg.CaFile) == "" && strings.TrimSpace(cfg.CaData) == "" {
return fmt.Errorf("CA cannot be empty string")
}
return nil
}

0 comments on commit b9e5276

Please sign in to comment.