Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLS config for AWS Elastiscache #258

Open
rohitjha941 opened this issue Jul 25, 2022 · 0 comments
Open

TLS config for AWS Elastiscache #258

rohitjha941 opened this issue Jul 25, 2022 · 0 comments

Comments

@rohitjha941
Copy link

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.

func makeTLSConfig(cfg *Config) *tls.Config {
	if cfg.RedisTLS == "" && !cfg.RedisInsecureTLS {
		return nil
	}
	return &tls.Config{
		ServerName:         cfg.RedisTLS,
		InsecureSkipVerify: cfg.RedisInsecureTLS,
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant