fix(ssl): make sure when regenerating the CA cert it is not overwritten with a server cert

This commit is contained in:
peaklabs-dev
2025-02-05 21:13:30 +01:00
parent 7666cec462
commit ba24630c28

View File

@@ -35,6 +35,8 @@ class RegenerateSslCertJob implements ShouldQueue
$query->where('valid_until', '<=', now()->addDays(14));
}
$query->where('is_ca_certificate', false);
$certificates = $query->get();
if ($certificates->isEmpty()) {