Letsencrypt: only update registration when necessary

if no Terms of Service are presented by the ACME server when registering, don't update registration
This commit is contained in:
Oliver Rahner
2016-09-04 21:27:23 +02:00
committed by GitHub
parent 78ab90f469
commit 9260319ac1

View File

@@ -81,7 +81,10 @@ class lescript
}
$this->license = $this->client->getAgreementURL();
// Terms of Servce are optional according to ACME specs; if no ToS are presented, no need to update registration
if (!empty($this->license)) {
$this->postRegAgreement(parse_url($this->client->getLastLocation(), PHP_URL_PATH));
}
$this->log('New account certificate registered');
} else {