acme

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTlsConfigWithCertAndKeyPaths

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

BuildTlsConfig with certificates

func BuildTlsConfigWithCerts

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

BuildTlsConfigWithExistingConfig with existing certificates

func HandleWildcardCertificates

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

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

Types

type Provider

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

func NewProvider

func NewProvider() *Provider

func (*Provider) AppendRecords

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

func (*Provider) DeleteRecords

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

func (*Provider) GetRecords

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

type RecordStore

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