Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
A Manager manages TLS certificates.
func NewManager ¶
func NewManager(dir string, hostKey types.PrivateKey, opts ...ManagerOpt) (*Manager, error)
NewManager creates a new Manager.
func (*Manager) GetCertificate ¶
func (m *Manager) GetCertificate(*tls.ClientHelloInfo) (*tls.Certificate, error)
GetCertificate returns the TLS certificate for the given ClientHelloInfo. It implements the tls.Config.GetCertificate method.
type ManagerOpt ¶
type ManagerOpt func(*Manager)
A ManagerOpt sets options for a certificate Manager.
func WithLocalCert ¶
func WithLocalCert(certFile, keyFile string) ManagerOpt
WithLocalCert sets the certificate and key files for the Manager.
Click to show internal directories.
Click to hide internal directories.