Kelunik\Acme\Verifiers\Http01 classHttp01

Verifies HTTP-01 challenges.

Summary

Properties

Methods

Properties

Methods

__construct —public function__construct(Kelunik\Acme\Verifiers\HttpClient|null$client =null)

Http01 constructor.

Type Parameter Description Default Value
Kelunik\Acme\Verifiers\HttpClient|null $client HTTP client to use, otherwise a default client will be used null
verifyChallenge —public functionverifyChallenge(string$domain,string$token,string$payload):Amp\Promise

Verifies a HTTP-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 $token challenge token none
string $payload expected payload none