Documentation
¶
Overview ¶
Package tls provides helpers around the crypto/tls package. Configuration is done via protobuf messages.
Index ¶
Constants ¶
View Source
const ( // TLSMinVersion is the minimum SSL/TLS version supported. TLSMinVersion = tls.VersionTLS12 )
Variables ¶
View Source
var ( // ErrBadClientAuthType is returned if the corresponding ClientAuthType could not be found. ErrBadClientAuthType = errors.New("bad ClientAuthType") )
Functions ¶
func CertConfig ¶ added in v1.1.0
CertConfig creates a *tls.Config directive from a proto message, loading an X.509 certificate from the cert/key files specified.
func ClientAuthType ¶
func ClientAuthType(t pb.TlsConfig_ClientAuthType) (tls.ClientAuthType, error)
ClientAuthType converts a proto ClientAuthType to its tls package equivalent.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.