dns01

package
v0.0.6-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DNSService *dns.Service

	ErrChallengeFailed          = errors.New("dns-01: challenge failed")
	ErrDNSServiceNotInitialized = errors.New("dns-01: DNS service not initialized")
)

Functions

func Setup

func Setup(challengeToken, authzValue string) error

Setup adds the ACME DNS-01 challenge record to the provided DNS domain hosted by the embedded platform DNS server.

func Verify

func Verify(
	resolver *net.Resolver,
	ca ca.CertificateAuthority,
	domain, port, challengeToken, expectedKeyAuth string) error

Verify checks if the dns-01 challenge is valid by querying the local DNS resolver for the expected key authorization in the _acme-challenge.<domain> TXT record. Implements acme.ChallengeVerifierFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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