Documentation
¶
Overview ¶
Package tlsutil builds TLS configurations for IMAP and submission.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertificateExpiry ¶
CertificateExpiry returns the leaf certificate's NotAfter time.
func GenerateSelfSigned ¶
GenerateSelfSigned writes a local development certificate and key.
Types ¶
type Reloader ¶
type Reloader struct {
// contains filtered or unexported fields
}
Reloader holds a manually supplied certificate and can replace it on SIGHUP.
func Load ¶
Load returns a TLS config for the configured certificate source. It returns (nil, nil, nil, nil) when no certificate source is configured.
func NewReloader ¶
NewReloader loads certFile/keyFile and returns a reloadable certificate provider.
Click to show internal directories.
Click to hide internal directories.