Open rohitjha941 opened 1 year ago
I am trying to use TLS to connect to AWS Elasticsearch. I have been using the following configurations with the go client. I am not defining the server name in the config as mentioned below.
redisConnOpt.TLSConfig = &tls.Config{ MinVersion: tls.VersionTLS12, }
The makeTLSConfig makes it mandatory for me to provide a server name, which is not desired here.
makeTLSConfig
func makeTLSConfig(cfg *Config) *tls.Config { if cfg.RedisTLS == "" && !cfg.RedisInsecureTLS { return nil } return &tls.Config{ ServerName: cfg.RedisTLS, InsecureSkipVerify: cfg.RedisInsecureTLS, } }
I am trying to use TLS to connect to AWS Elasticsearch. I have been using the following configurations with the go client. I am not defining the server name in the config as mentioned below.
The
makeTLSConfig
makes it mandatory for me to provide a server name, which is not desired here.