Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultMinVersion = uint16(tls.VersionTLS12) DefaultCipherSet = []uint16{tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384} )
Functions ¶
func NewClientTLSConfig ¶
NewClientTLSConfig constructs a client tls.Conf from provide ftls Config.
func NewGRPCClientDialOpt ¶
func NewGRPCClientDialOpt(c *Config) (grpc.DialOption, error)
func NewServerTLSConfig ¶
NewServerTLSConfig constructs a server tls.Conf from the provided ftls Config.
func VerifyClientAddrMatch ¶
Types ¶
type Config ¶
type Config struct { StrictClientVerify bool MutualTLS bool InsecureSkipVerify bool MinVersion uint16 CipherSet []uint16 CertFile string KeyFile string CAFile string }
func DefaultClientFTLSConf ¶
DefaultClientFTLSConf returns a ftls config with the most commonly used config set.
func DefaultServerFTLSConf ¶
DefaultServerFTLSConf returns a ftls config with the most commonly used config set.
Click to show internal directories.
Click to hide internal directories.