acme

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 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, waveConfig cwave.Config,
	configurators ...Configurator) host.Configurator

Service returns new acme client service.

Types

type Config

type Config struct {
	Email       string
	AccountFile string
	CertFile    string
	Directory   DirectoryConfig
	WaveConfig  wave.Config
	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.

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