acme

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Port is the port where cert is served.
	Port = 80
)

Variables

View Source
var (
	// LetsEncrypt is the LetsEncrypt production config.
	LetsEncrypt = DirectoryConfig{
		Name:          "lestsencrypt",
		Provider:      "letsencrypt.org",
		DirectoryURL:  "https://acme-v02.api.letsencrypt.org/directory",
		RenewDuration: time.Hour * 24 * 29,
	}

	// LetsEncryptStaging is the LetsEncrypt staging config.
	LetsEncryptStaging = DirectoryConfig{
		Name:          "lestsencrypt-staging",
		Provider:      "letsencrypt.org",
		DirectoryURL:  "https://acme-staging-v02.api.letsencrypt.org/directory",
		RenewDuration: 30 * time.Minute,
	}
)

Functions

func Service

func Service(appName, email string, dirConfig DirectoryConfig, configurators ...Configurator) host.Configurator

Service returns new acme client service.

Types

type Config

type Config struct {
	Email       string
	AccountFile string
	CertFile    string
	Directory   DirectoryConfig
	WaveServers []string
	Domains     []string
}

Config stores acme configuration.

type Configurator

type Configurator func(c *Config)

Configurator defines function setting the dns configuration.

func Domains

func Domains(domains ...string) Configurator

Domains adds domains to issue certificate for.

func Waves

func Waves(waves ...string) Configurator

Waves adds wave servers to send challenge requests to.

type DirectoryConfig

type DirectoryConfig struct {
	Name          string
	Provider      string
	DirectoryURL  string
	Insecure      bool
	RenewDuration time.Duration
}

DirectoryConfig is the config of ACME directory service.

func Pebble

func Pebble(host string) DirectoryConfig

Pebble returns directory config for pebble.

Directories

Path Synopsis
generator command

Jump to

Keyboard shortcuts

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