LE: change semantics of setting.letsencryptreuseold

Previously setting.letsencryptreuseold determined wheter both a domain's
private key and a CSR should be re-generated.

Preparing support of alias domains in LE certificates, this is changed to
only determine the re-generation of the private key. CSRs now are always
re-generated.
This commit is contained in:
Daniel Reichelt
2016-05-16 16:29:59 +02:00
parent 001f10f74e
commit f3e05742b5
4 changed files with 12 additions and 27 deletions

View File

@@ -227,9 +227,7 @@ class lescript
$this->client->getLastLinks();
if (empty($csrfile) || Settings::Get('system.letsencryptreuseold') == 0) {
$csr = $this->generateCSR($privateDomainKey, $domains);
}
$csr = $this->generateCSR($privateDomainKey, $domains);
// request certificates creation
$result = $this->signedRequest("/acme/new-cert", array(