Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Commit

Permalink
Version 1.2.1
Browse files Browse the repository at this point in the history
Bugfixes
  • Loading branch information
yourivw committed Mar 28, 2020
1 parent 08895d1 commit 1a3f30b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/LEClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class LEClient
const LE_PRODUCTION = 'https://acme-v02.api.letsencrypt.org';
const LE_STAGING = 'https://acme-staging-v02.api.letsencrypt.org';

private $certificatesKeys;
private $certificateKeys;
private $accountKeys;

private $connector;
Expand Down
1 change: 1 addition & 0 deletions src/LEFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace LEClient;

use Exception;
use LEClient\Exceptions\LEFunctionsException;

/**
Expand Down
6 changes: 3 additions & 3 deletions src/LEOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ public function finalizeOrder($csr = '')
*/
public function isFinalized()
{
return ($this->status == 'processing' || $this->status == 'valid');
return ($this->status == 'processing' || $this->status == 'valid' || $this->status == 'ready');
}

/**
Expand All @@ -646,7 +646,7 @@ public function getCertificate()
$this->updateOrderData();
$polling++;
}
if($this->status == 'valid' && !empty($this->certificateURL))
if(($this->status == 'valid' || $this->status == 'ready') && !empty($this->certificateURL))
{
$sign = $this->connector->signRequestKid('', $this->connector->accountURL, $this->certificateURL);
$post = $this->connector->post($this->certificateURL, $sign);
Expand Down Expand Up @@ -711,7 +711,7 @@ public function getCertificate()
*/
public function revokeCertificate($reason = 0)
{
if($this->status == 'valid')
if($this->status == 'valid' || $this->status == 'ready')
{
if (isset($this->certificateKeys['certificate'])) $certFile = $this->certificateKeys['certificate'];
elseif (isset($this->certificateKeys['fullchain_certificate'])) $certFile = $this->certificateKeys['fullchain_certificate'];
Expand Down

0 comments on commit 1a3f30b

Please sign in to comment.