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:
@@ -81,7 +81,10 @@ class lescript
|
|||||||
}
|
}
|
||||||
$this->license = $this->client->getAgreementURL();
|
$this->license = $this->client->getAgreementURL();
|
||||||
|
|
||||||
$this->postRegAgreement(parse_url($this->client->getLastLocation(), PHP_URL_PATH));
|
// 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');
|
$this->log('New account certificate registered');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user