Kelunik\Acme\Verifiers\Dns01::verifyChallenge PHP Method

verifyChallenge() public method

Can be used to verify a challenge before requesting validation from a CA to catch errors early.
public verifyChallenge ( string $domain, string $expectedPayload ) : Amp\Promise
$domain string domain to verify
$expectedPayload string expected DNS record value
return Amp\Promise resolves to the DNS entry found
    public function verifyChallenge($domain, $expectedPayload)
    {
        return \Amp\resolve($this->doVerifyChallenge($domain, $expectedPayload));
    }