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

servername is supported when tls is enabled #206

Open
zhyocean opened this issue Feb 15, 2023 · 0 comments
Open

servername is supported when tls is enabled #206

zhyocean opened this issue Feb 15, 2023 · 0 comments
Labels
type/feature req Type: feature request

Comments

@zhyocean
Copy link

zhyocean commented Feb 15, 2023

The genSslConfig function expects to set the servername and version itself

For example

return &tls.Config{
		ServerName:         serverName,
		Certificates:       []tls.Certificate{clientCert},
		RootCAs:            rootCAPool,
		InsecureSkipVerify: *sslInsecureSkipVerify,
                MinVersion:   tls.VersionTLS12,
	        MaxVersion:   tls.VersionTLS12,
	}, nil

The value of the serverNameMinVersionMaxVersion allows me to pass arguments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature req Type: feature request
Projects
None yet
Development

No branches or pull requests

2 participants