Skip to content

servername is supported when tls is enabled #206

Description

@zhyocean

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions