Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertManager ¶
type CertManager struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...Option) (*CertManager, error)
New creates a new CertManager. Using the ACME functionality in this package means that you've read and agree to your CA's legal documents.
func (*CertManager) AddAddrs ¶
func (m *CertManager) AddAddrs(addrs []ma.Multiaddr)
func (*CertManager) AddCert ¶
func (m *CertManager) AddCert(certFile, keyFile string) error
AddCert adds a certificate from a file on disk. It's the caller's responsibility to deal with certificate renewal. OCSP stapling is performed, if possible. See https://pkg.go.dev/github.com/caddyserver/certmagic#readme-can-i-use-some-of-my-own-certificates-while-using-certmagic for details.
func (*CertManager) Close ¶
func (m *CertManager) Close() error
func (*CertManager) GetTLSConfig ¶
func (m *CertManager) GetTLSConfig() *tls.Config
GetTLSConfig returns a tls.Config that can be use for a TLS listener.
type Option ¶
type Option func(*config) error
func WithHTTPPort ¶
WithHTTPPort sets an alternate port to use for the ACME HTTP challenge.
func WithTLSPort ¶
WithTLSPort sets an alternate port to use for the ACME TLS ALPN challenge.