Versions in this module Expand all Collapse all v2 v2.49.0 Sep 16, 2026 Changes in this version + var ErrIncompleteKeyPair = errors.New("incomplete tls key pair") + var ErrInvalidCipherSuite = errors.New("invalid tls cipher suite") + var ErrInvalidClientAuth = errors.New("invalid tls client authentication") + var ErrInvalidVersion = errors.New("invalid tls version") + var ErrMissingClientCA = errors.New("no client certificate authority configured") + var ErrNoCertificate = errors.New("no tls serving certificate configured") + var ErrNoCipherSuite = errors.New("no usable tls cipher suite configured") + type CipherSuite string + func (s *CipherSuite) UnmarshalText(text []byte) error + type ClientAuthMode string + const ClientAuthOff + const ClientAuthOn + const ClientAuthOptional + const ClientAuthOptionalNoCA + const ClientAuthUnset + func (m *ClientAuthMode) UnmarshalText(text []byte) error + func (m ClientAuthMode) String() string + type Config struct + CertFile string + CipherSuites []CipherSuite + ClientAuth ClientAuthMode + ClientCAFiles []string + Enabled bool + KeyFile string + Logger *slog.Logger + MaxVersion Version + MinVersion Version + Name string + type Version string + const VersionTLS12 + const VersionTLS13 + const VersionUnset + func (v *Version) UnmarshalText(text []byte) error + func (v Version) String() string