acme

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 13 Imported by: 3

Documentation

Overview

Taken from https://github.com/chinzhiweiblank/coredns-acme/blob/e0cdfbdd78adfcc6c2d098255902f64ec60daecb/provider.go Copyright @chinzhiweiblank under Apache License 2.0

Index

Constants

View Source
const (
	DNSChallengeString   = "_acme-challenge."
	CertificateAuthority = "letsencrypt.org."
)

Variables

This section is empty.

Functions

func BuildTlsConfigWithCertAndKeyPaths added in v1.0.3

func BuildTlsConfigWithCertAndKeyPaths(certPath, privKeyPath, domain string) (*tls.Config, error)

BuildTlsConfigWithCertAndKeyPaths Build TlsConfig with certificates

func BuildTlsConfigWithCerts added in v1.0.3

func BuildTlsConfigWithCerts(domain string, certs ...tls.Certificate) (*tls.Config, error)

BuildTlsConfigWithCerts Build TlsConfig with existing certificates

func CleanupStorage added in v1.0.5

func CleanupStorage()

CleanupStorage perform cleanup routines tasks

func HandleWildcardCertificates added in v1.0.0

func HandleWildcardCertificates(domain, email string, store *Provider, debug bool) ([]tls.Certificate, error)

HandleWildcardCertificates handles ACME wildcard cert generation with DNS challenge using certmagic library from caddyserver.

Types

type Provider added in v1.0.0

type Provider struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewProvider added in v1.0.0

func NewProvider() *Provider

func (*Provider) AppendRecords added in v1.0.0

func (p *Provider) AppendRecords(ctx context.Context, zoneName string, recs []libdns.Record) ([]libdns.Record, error)

func (*Provider) DeleteRecords added in v1.0.0

func (p *Provider) DeleteRecords(ctx context.Context, zoneName string, recs []libdns.Record) ([]libdns.Record, error)

func (*Provider) GetRecords added in v1.0.0

func (p *Provider) GetRecords(ctx context.Context, zoneName string) ([]libdns.Record, error)

type RecordStore added in v1.0.0

type RecordStore struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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