Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/LEFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ public static function checkDNSChallenge($domain, $DNSDigest)
{
if($answer->type === 16)
{
/* Since May 19th, this check always fails because the comparison should take place without the quotes; let's keep both just to be sure */
if($answer->data === ('"' . $DNSDigest . '"')) return true;
if($answer->data === $DNSDigest) return true;
}
}
}
Expand Down
33 changes: 33 additions & 0 deletions src/LEOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class LEOrder
public $expires;
public $identifiers;
private $authorizationURLs;
/** @var LEAuthorization[] */
public $authorizations;
public $finalizeURL;
public $certificateURL;
Expand Down Expand Up @@ -414,11 +415,27 @@ public function verifyPendingOrderAuthorization($identifier, $type, $localcheck
}
elseif($this->log >= LEClient::LOG_STATUS) LEFunctions::log('HTTP challenge for \'' . $identifier . '\' valid.', 'function verifyPendingOrderAuthorization');
}

$i = 1;

while($auth->status == 'pending')
{
if( $i > 6 )
{
break;
}

sleep(1);
$auth->updateData();

$i++;
}

if($auth->status == 'pending')
{
return false;
}

return true;
}
}
Expand Down Expand Up @@ -447,11 +464,27 @@ public function verifyPendingOrderAuthorization($identifier, $type, $localcheck
}
elseif($this->log >= LEClient::LOG_STATUS) LEFunctions::log('DNS challenge for \'' . $identifier . '\' valid.', 'function verifyPendingOrderAuthorization');
}

$i = 1;

while($auth->status == 'pending')
{
if( $i > 6 )
{
break;
}

sleep(1);
$auth->updateData();

$i++;
}

if($auth->status == 'pending')
{
return false;
}

return true;
}
}
Expand Down