From a141c83ad48191a5460c14a6098b5f18ae49b473 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Tue, 23 Jun 2020 20:35:50 +0200 Subject: [PATCH] do not call strtotime on the validTo_time_t key of cert_data as it already is an UNIX-timestamp, refs #865 Signed-off-by: Michael Kaufmann --- lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php b/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php index 357c893d5b..aeeb3a32da 100644 --- a/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php +++ b/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php @@ -491,7 +491,7 @@ private static function checkFsFilesAreNewer($domain, $cert_date = 0) if (is_dir($certificate_folder) && file_exists($ssl_file) && is_readable($ssl_file)) { $cert_data = openssl_x509_parse(file_get_contents($ssl_file)); - if (strtotime($cert_data['validTo_time_t']) > strtotime($cert_date)) { + if ($cert_data['validTo_time_t'] > strtotime($cert_date)) { return true; } }