acme

package
v5.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP01    challenge = "http-01"
	TLSAlpn01 challenge = "tlsalpn-01"
)

Variables

This section is empty.

Functions

func IssueCertificates

func IssueCertificates(cacheDir, email, challengeType string, domains []string, useProduction bool, altHTTPPort, altTLSAlpnPort int, log *zap.Logger) (*tls.Config, error)

Types

type Config

type Config struct {
	// directory to save the certificates, le_certs default
	CacheDir string `mapstructure:"cache_dir"`
	// User email, mandatory
	Email string `mapstructure:"email"`
	// supported values: http-01, tlsalpn-01
	ChallengeType string `mapstructure:"challenge_type"`
	// The alternate port to use for the ACME HTTP challenge
	AltHTTPPort int `mapstructure:"alt_http_port"`
	// The alternate port to use for the ACME TLS-ALPN
	AltTLSALPNPort int `mapstructure:"alt_tlsalpn_port"`
	// Use LE production endpoint or staging
	UseProductionEndpoint bool `mapstructure:"use_production_endpoint"`
	// Domains to obtain certificates
	Domains []string `mapstructure:"domains"`
}

func (*Config) InitDefaults

func (ac *Config) InitDefaults() error

Jump to

Keyboard shortcuts

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