public function hasDomainAuthorizationChallenge($domain) { return $this->master->has('private/' . $domain . '/authorization_challenge.json'); }
public function testLoadDomainAuthorizationChallenge() { $challenge = new AuthorizationChallenge('example.org', 'http-01', 'https://acme-v01.api.letsencrypt.org/acme/challenge/bzHDB1T3ssGlGEfK_j-sTsCz6eayLww_Eb56wQpEtCk/124845837', 'wJDbK9uuuz56O6z_dhMFStHQf4JnEYU9A8WJi7lS8MA', 'wJDbK9uuuz56O6z_dhMFStHQf4JnEYU9A8WJi7lS8MA.zUny8k33uiaGcQMz8rGcWJnnbuLwTCpbNc7luaPyDgY'); $this->assertFalse($this->repository->hasDomainAuthorizationChallenge('example.com')); $this->repository->storeDomainAuthorizationChallenge('example.com', $challenge); $this->assertTrue($this->repository->hasDomainAuthorizationChallenge('example.com')); $this->assertEquals($challenge, $this->repository->loadDomainAuthorizationChallenge('example.com')); }