Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrIdentificationFailed = errors.New("failed to identify socket type")
)
Functions ¶
func NewCertificate ¶
func NewCertificate(certFile, keyFile, commonName string, lifetimeDays int) (tls.Certificate, error)
NewCertificate generates and returns a new TLS certificate.
func SecureDefault ¶ added in v0.14.53
SecureDefault returns a tls.Config with reasonable, secure defaults set.
Types ¶
type DowngradingListener ¶
func (*DowngradingListener) AcceptNoWrapTLS ¶
func (l *DowngradingListener) AcceptNoWrapTLS() (net.Conn, bool, error)
type UnionedConnection ¶
Click to show internal directories.
Click to hide internal directories.