Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCiphers ¶
ParseCiphers returns a `[]uint16` by received `[]string` key that represents ciphers from crypto/tls. If some of ciphers in received list doesn't exists ParseCiphers returns nil with error
func ParseTLSVersion ¶
ParseTLSVersion returns a `uint16` by received version string key that represents tls version from crypto/tls. If version isn't supported ParseTLSVersion returns 0 with error
Types ¶
type ClientConfig ¶
type ClientConfig struct { UseTLS bool `toml:"use_tls"` TLSCA string `toml:"tls_ca"` TLSCert string `toml:"tls_cert"` TLSKey string `toml:"tls_key"` TLSKeyPwd string `toml:"tls_key_pwd"` InsecureSkipVerify bool `toml:"insecure_skip_verify"` ServerName string `toml:"tls_server_name"` TLSMinVersion string `toml:"tls_min_version"` TLSMaxVersion string `toml:"tls_max_version"` }
ClientConfig represents the standard client TLS config.
type ServerConfig ¶
type ServerConfig struct { TLSCert string `toml:"tls_cert"` TLSKey string `toml:"tls_key"` TLSKeyPwd string `toml:"tls_key_pwd"` TLSAllowedCACerts []string `toml:"tls_allowed_cacerts"` TLSCipherSuites []string `toml:"tls_cipher_suites"` TLSMinVersion string `toml:"tls_min_version"` TLSMaxVersion string `toml:"tls_max_version"` TLSAllowedDNSNames []string `toml:"tls_allowed_dns_names"` }
ServerConfig represents the standard server TLS config.
Click to show internal directories.
Click to hide internal directories.