Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/Handler/SignEngine/SignEngineHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,10 @@ public function getLastSignedDate(): \DateTime {
// Prevent accepting certificates with future signing dates (possible clock issues)
$dateTime = new \DateTime();
if ($last['signingTime'] > $dateTime) {
$this->logger->error('We found Marty McFly', ['last_signature' => $last['signingTime'], 'current_date_time' => $dateTime]);
$this->logger->error('We found Marty McFly', [
'last_signature' => json_encode($last['signingTime']),
'current_date_time' => json_encode($dateTime),
]);
throw new \UnexpectedValueException('Invalid signingTime in certificate chain. We found Marty McFly');
}

Expand Down
Loading