acme

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 28 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
Package wire provides marshaller for entities.
Package wire provides marshaller for entities.
generator command

Jump to

Keyboard shortcuts

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