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 { TLSCA string `json:"ca"` TLSCert string `json:"cert"` TLSKey string `json:"key"` InsecureSkipVerify bool `json:"insecureSkipVerify"` }
ClientConfig represents the standard client TLS config.
type ServerConfig ¶
type ServerConfig struct { TLSCert string `json:"cert"` TLSKey string `json:"key"` TLSAllowedCACerts []string `json:"allowedCaCerts"` TLSCipherSuites []string `json:"cipherSuites"` TLSMinVersion string `json:"minVersion"` TLSMaxVersion string `json:"maxVersion"` }
ServerConfig represents the standard server TLS config.
Click to show internal directories.
Click to hide internal directories.