fix(ssl): make sure when regenerating the CA cert it is not overwritten with a server cert
This commit is contained in:
@@ -35,6 +35,8 @@ class RegenerateSslCertJob implements ShouldQueue
|
|||||||
$query->where('valid_until', '<=', now()->addDays(14));
|
$query->where('valid_until', '<=', now()->addDays(14));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$query->where('is_ca_certificate', false);
|
||||||
|
|
||||||
$certificates = $query->get();
|
$certificates = $query->get();
|
||||||
|
|
||||||
if ($certificates->isEmpty()) {
|
if ($certificates->isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user