Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrIdentificationFailed = fmt.Errorf("failed to identify socket type")
)
Functions ¶
func NewCertificate ¶
func NewCertificate(certFile, keyFile, tlsDefaultCommonName string, tlsRSABits int) (tls.Certificate, error)
NewCertificate generates and returns a new TLS certificate. If tlsRSABits is greater than zero we generate an RSA certificate with the specified number of bits. Otherwise we create a 384 bit ECDSA certificate.
Types ¶
type DowngradingListener ¶
func (*DowngradingListener) AcceptNoWrapTLS ¶
func (l *DowngradingListener) AcceptNoWrapTLS() (net.Conn, bool, error)
Click to show internal directories.
Click to hide internal directories.