From b0d232d1e0df5541b79479418e7af23f2f00d87b Mon Sep 17 00:00:00 2001 From: AlexNodex Date: Mon, 9 Dec 2024 13:54:39 +0000 Subject: [PATCH 1/4] Update Account.php FIx for Lets Encrypt initialIP removal https://community.letsencrypt.org/t/has-the-output-of-initialip-changed-in-the-account-directory/229823/7 --- src/Data/Account.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Data/Account.php b/src/Data/Account.php index 9a957c8..3b59f42 100644 --- a/src/Data/Account.php +++ b/src/Data/Account.php @@ -43,10 +43,8 @@ public function __construct( array $contact, \DateTime $createdAt, bool $isValid, - string $initialIp, string $accountURL ) { - $this->initialIp = $initialIp; $this->contact = $contact; $this->createdAt = $createdAt; $this->isValid = $isValid; From 7201420b8be94bd0ad4ea5c86d208b53ef6351e7 Mon Sep 17 00:00:00 2001 From: AlexNodex Date: Mon, 9 Dec 2024 13:55:35 +0000 Subject: [PATCH 2/4] Update Client.php Fix for lets encrypt's removal of initialIp from the json response. https://community.letsencrypt.org/t/has-the-output-of-initialip-changed-in-the-account-directory/229823/7 --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index ecc2ec0..013e25e 100644 --- a/src/Client.php +++ b/src/Client.php @@ -357,7 +357,7 @@ public function getAccount(): Account $data = json_decode((string)$response->getBody(), true); $accountURL = $response->getHeaderLine('Location'); $date = (new \DateTime())->setTimestamp(strtotime($data['createdAt'])); - return new Account($data['contact'], $date, ($data['status'] == 'valid'), $data['initialIp'], $accountURL); + return new Account($data['contact'], $date, ($data['status'] == 'valid'), $accountURL); } /** From 4d9ee4e4183cb32a4128e3d8f3395fbef1eb016d Mon Sep 17 00:00:00 2001 From: AlexNodex Date: Tue, 10 Dec 2024 08:12:47 +0000 Subject: [PATCH 3/4] Update composer.json Flysystem-local --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index c1d097d..cdae252 100644 --- a/composer.json +++ b/composer.json @@ -26,6 +26,7 @@ "require": { "guzzlehttp/guzzle": "^6.3", "league/flysystem": "^1.0", + "league/flysystem-local": "^1.0", "ext-openssl": "*", "ext-json": "*" } From 4e10f1b457845deb36d83041d1efe21f1fa24536 Mon Sep 17 00:00:00 2001 From: AlexNodex Date: Tue, 10 Dec 2024 08:14:31 +0000 Subject: [PATCH 4/4] Update composer.json Matching composer of upstream --- composer.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index cdae252..a76ff8f 100644 --- a/composer.json +++ b/composer.json @@ -24,9 +24,8 @@ } }, "require": { - "guzzlehttp/guzzle": "^6.3", - "league/flysystem": "^1.0", - "league/flysystem-local": "^1.0", + "guzzlehttp/guzzle": "^6.3|^7.0", + "league/flysystem": "^1.0|^3.0", "ext-openssl": "*", "ext-json": "*" }