autocert

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package autocert is modeled after and built on https://golang.org/x/crypto/acme/autocert.

See the top-level package for general documentation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNS

type DNS interface {
	acmedns.DNS

	// ResolveZone checks the existence of a host.  If it is a known host in a
	// known zone, its domain name is returned.  In all other cases an error is
	// returned.
	//
	// Successful check of a nonexistent name should return an error with a
	// NotExist() method which returns true.
	ResolveZone(ctx context.Context, hostname string) (domain string, err error)
}

DNS knows what hosts exist in which zones, and can create/update TXT records in those zones. It doesn't have to be instantaneous.

type Logger

type Logger interface {
	Printf(fmt string, args ...interface{})
}

Logger is a subset of log.Logger.

type Manager

type Manager struct {
	Prompt      func(tosURL string) bool
	Cache       autocert.Cache
	DNS         DNS
	RenewBefore time.Duration
	Client      *acme.Client
	Email       string
	ForceRSA    bool

	DebugLog Logger // Defaults to nothingness
	// contains filtered or unexported fields
}

func (*Manager) GetCertificate

func (m *Manager) GetCertificate(hello *tls.ClientHelloInfo) (*tls.Certificate, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL