Versions in this module Expand all Collapse all v1 v1.4.0 Mar 18, 2024 Changes in this version + const H2TLSProto + var DefaultCipher = []uint16 + var DefaultCurve = []tls.CurveID + var ErrParseUserCA = errors.New("failed to parse root certificate") + func GetTLSCfg(cfg Config, http2 ...bool) (*tls.Config, error) + func LoadListner(addr string, cfg *tls.Config) (net.Listener, error) + type Config struct + Ca string + Cert string + Insecure bool + Key string + Level Level + func (cfg Config) AsAttrs() []any + func (cfg Config) Empty() bool + func (cfg Config) SameAs(in Config) bool + type Level tls.ClientAuthType + const NoClientCert + const RequestClientCert + const RequireAndVerifyClientCert + const RequireAndVerifyClientCertAndSAN + const RequireAnyClientCert + const VerifyClientCertIfGiven + func (lv *Level) Set(val string) error + func (lv *Level) UnmarshalJSON(b []byte) error + func (lv Level) MarshalJSON() ([]byte, error) + func (lv Level) STD() tls.ClientAuthType + func (lv Level) String() string + type LevelError struct + func (e LevelError) Error() string