Signed-off-by: Michal Gebauer <mishak@mishak.net>
| ... | ... |
@@ -62,7 +62,7 @@ func newTLSConfig(hostname string, isSecure bool) (*tls.Config, error) {
|
| 62 | 62 |
|
| 63 | 63 |
tlsConfig.InsecureSkipVerify = !isSecure |
| 64 | 64 |
|
| 65 |
- if isSecure {
|
|
| 65 |
+ if isSecure && CertsDir != "" {
|
|
| 66 | 66 |
hostDir := filepath.Join(CertsDir, cleanPath(hostname)) |
| 67 | 67 |
logrus.Debugf("hostDir: %s", hostDir)
|
| 68 | 68 |
if err := ReadCertsDirectory(&tlsConfig, hostDir); err != nil {
|