From b8bfd7ff4c73a7e32bc30230cbbae592ac333b51 Mon Sep 17 00:00:00 2001 From: Daniel Reichelt Date: Sun, 11 Sep 2016 00:47:32 +0200 Subject: [PATCH] LE: don't re-use old CSRs, always generate new ones fixes #1652 --- scripts/jobs/cron_letsencrypt.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/jobs/cron_letsencrypt.php b/scripts/jobs/cron_letsencrypt.php index 7bdf22cc..5e460698 100644 --- a/scripts/jobs/cron_letsencrypt.php +++ b/scripts/jobs/cron_letsencrypt.php @@ -165,7 +165,7 @@ if (Settings::Get('system.le_froxlor_enabled') == '1') { $le->initAccount($certrow, true); // Request the new certificate (old key may be used) - $return = $le->signDomains($domains, $certrow['ssl_key_file'], $certrow['ssl_csr_file']); + $return = $le->signDomains($domains, $certrow['ssl_key_file']); // We are interessted in the expirationdate $newcert = openssl_x509_parse($return['crt']); @@ -246,7 +246,7 @@ foreach ($certrows as $certrow) { $le->initAccount($certrow); // Request the new certificate (old key may be used) - $return = $le->signDomains($domains, $certrow['ssl_key_file'], $certrow['ssl_csr_file']); + $return = $le->signDomains($domains, $certrow['ssl_key_file']); // We are interessted in the expirationdate $newcert = openssl_x509_parse($return['crt']);