Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertFunc ¶
func CertFunc(c Certer) func(*tls.ClientHelloInfo) (*tls.Certificate, error)
CertFunc returns a simple Func for use in the tls.Config.GetCertificate function.
Types ¶
type Certer ¶
type Certer interface {
Cert(cn string) (*tls.Certificate, error)
}
A Certer is anything that can provision a *tls.Certificate for a common name.
type SelfSigner ¶
type SelfSigner struct {
// contains filtered or unexported fields
}
A SelfSigner returns certificates that are self-signed.
func (*SelfSigner) Cert ¶
func (s *SelfSigner) Cert(cn string) (*tls.Certificate, error)
Click to show internal directories.
Click to hide internal directories.