Kelunik\Acme\Verifiers\Dns01 classDns01

Verifies DNS-01 challenges.

Summary

Properties

Methods

Properties

Methods

__construct —public function__construct(Kelunik\Acme\Verifiers\Resolver|null$resolver =null)

Dns01 constructor.

Type Parameter Description Default Value
Kelunik\Acme\Verifiers\Resolver|null $resolver DNS resolver, otherwise a default resolver will be used null
verifyChallenge —public functionverifyChallenge(string$domain,string$expectedPayload):Amp\Promise

Verifies a DNS-01 Challenge.

Can be used to verify a challenge before requesting validation from a CA to catch errors early.

Type Parameter Description Default Value
string $domain domain to verify none
string $expectedPayload expected DNS record value none