diff --git a/common/persistence/sql/sqlplugin/mysql/plugin.go b/common/persistence/sql/sqlplugin/mysql/plugin.go index 3285bf8b86d..ab4144fe172 100644 --- a/common/persistence/sql/sqlplugin/mysql/plugin.go +++ b/common/persistence/sql/sqlplugin/mysql/plugin.go @@ -126,7 +126,8 @@ func registerTLSConfig(cfg *config.SQL) error { // TODO: create a way to set MinVersion and CipherSuites via cfg. tlsConfig := &tls.Config{ - ServerName: host, + ServerName: host, + InsecureSkipVerify: !cfg.TLS.EnableHostVerification, } if cfg.TLS.CaFile != "" {