Skip to content

Commit

Permalink
do not call strtotime on the validTo_time_t key of cert_data as it al…
Browse files Browse the repository at this point in the history
…ready is an UNIX-timestamp, refs #865

Signed-off-by: Michael Kaufmann <[email protected]>
  • Loading branch information
d00p committed Jun 23, 2020
1 parent 7c3ff95 commit a141c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit a141c83

Please sign in to comment.