From d0152d5963273b565a8beda4db5ccfe525283714 Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 21 Nov 2025 07:22:59 +0100 Subject: [PATCH] Prevent uploads with superseded cert --- application/controllers/Lotw.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index 6cc963ca1..90686c458 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -242,6 +242,14 @@ class Lotw extends CI_Controller { continue; } + // Check LoTW cert against CRL + if ($data['lotw_cert_info']->status != 0) { + if ($data['lotw_cert_info']->status == 1) { + echo $station_profile->station_callsign.": LoTW certificate superseded.
"; + continue; + } + } + // Check if LoTW certificate itself is valid // Validty of QSO dates will be checked later $current_date = date('Y-m-d H:i:s');