Documentation ¶
Overview ¶
Package ftls provides simpler/default ways to use TLS, including Mutual TLS, with CFS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMinVersion = uint16(tls.VersionTLS12)
Functions ¶
func NewGRPCClientDialOpt ¶
func NewGRPCClientDialOpt(c *Config) (grpc.DialOption, error)
NewGRPCClientDialOpt provides a GRPC option for TLS configuration using the provided ftls Config.
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 client config set.
func DefaultServerFTLSConf ¶
DefaultServerFTLSConf returns a ftls config with the most commonly used server config set.
Click to show internal directories.
Click to hide internal directories.