PHP Class Kelunik\Acme\Verifiers\Dns01

Mostrar archivo Open project: kelunik/acme

Public Methods

Method Description
__construct ( Amp\Dns\Resolver $resolver = null ) Dns01 constructor.
verifyChallenge ( string $domain, string $expectedPayload ) : Amp\Promise Verifies a DNS-01 Challenge.

Private Methods

Method Description
doVerifyChallenge ( string $domain, string $expectedPayload ) : Generator Verifies a DNS-01 Challenge.

Method Details

__construct() public method

Dns01 constructor.
public __construct ( Amp\Dns\Resolver $resolver = null )
$resolver Amp\Dns\Resolver DNS resolver, otherwise a default resolver will be used

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