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 <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2020-06-23 20:35:50 +02:00
parent 7c3ff95d22
commit a141c83ad4

View File

@@ -491,7 +491,7 @@ class AcmeSh extends \Froxlor\Cron\FroxlorCron
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;
}
}