starttls

package
v0.0.0-...-8277694 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTlsNotSupported = errors.New("STARTTLS not supported")

Functions

func GenTLS

func GenTLS(hostname, org, certfile, privkeyfile string, bits int) (tcfg *tls.Config, err error)

generate tls config, private key and certificate

func HandleStartTLS

func HandleStartTLS(conn net.Conn, config *tls.Config) (econn *textproto.Conn, state tls.ConnectionState, err error)

handle STARTTLS on connection

func NewTLSCert

func NewTLSCert(org string, ca bool) x509.Certificate

create base tls certificate

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL