Implement check if LotW cert itself is valid to

use for signing. If not skip.
这个提交包含在:
phl0 2022-08-24 16:04:26 +02:00
父节点 a0d551d3c3
当前提交 1e32fbed3f
找不到此签名对应的密钥
GPG 密钥 ID: 48EA1E640798CA9A

查看文件

@ -229,6 +229,18 @@ class Lotw extends CI_Controller {
continue; 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');
if ($current_date <= $data['lotw_cert_info']->date_created) {
echo $data['lotw_cert_info']->callsign.": LotW certificate not valid yet!";
continue;
}
if ($current_date >= $data['lotw_cert_info']->date_expires) {
echo $data['lotw_cert_info']->callsign.": LotW certificate expired!";
continue;
}
$this->load->model('Dxcc'); $this->load->model('Dxcc');
$data['station_profile_dxcc'] = $this->Dxcc->lookup_country($data['lotw_cert_info']->cert_dxcc); $data['station_profile_dxcc'] = $this->Dxcc->lookup_country($data['lotw_cert_info']->cert_dxcc);