Documentation
¶
Index ¶
- type Config
- type Listener
- func (l *Listener) Accept() (net.Conn, error)
- func (l *Listener) Addr() net.Addr
- func (l *Listener) Close() error
- func (l *Listener) GetCertificate(hello *tls.ClientHelloInfo) (*tls.Certificate, error)
- func (l *Listener) Preprovision(ctx context.Context) error
- func (l *Listener) TLSConfig() *tls.Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Domains []string
IPAddrs []string
ForceALPN bool
ForceHTTP bool
Cache certmgr.Cache
Client *acme.Client
TLSConfig *tls.Config
OnCreateCert func(cert *tls.Certificate)
}
Config contains configuration about ACME Manager.
type Listener ¶ added in v1.3.0
type Listener struct {
// contains filtered or unexported fields
}
Listener is the ACME listener, it will wrap the connection.
func ListenContext ¶
ListenContext is used to listen a TLS listener with context.
func NewListener ¶ added in v1.1.0
NewListener is used to create ACME listener from income listener.
func (*Listener) GetCertificate ¶ added in v1.3.0
func (l *Listener) GetCertificate(hello *tls.ClientHelloInfo) (*tls.Certificate, error)
GetCertificate is the tls.Config.GetCertificate hook.
func (*Listener) Preprovision ¶ added in v1.3.0
Preprovision is used to get certificate before accept the first connection.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package acme provides an implementation of the Automatic Certificate Management Environment (ACME) spec, most famously used by Let's Encrypt.
|
Package acme provides an implementation of the Automatic Certificate Management Environment (ACME) spec, most famously used by Let's Encrypt. |
|
Package certmgr provides automatic access to certificates from Let's Encrypt and any other ACME-based CA.
|
Package certmgr provides automatic access to certificates from Let's Encrypt and any other ACME-based CA. |
|
internal/acmetest
Package acmetest provides types for testing acme and autocert packages.
|
Package acmetest provides types for testing acme and autocert packages. |
Click to show internal directories.
Click to hide internal directories.