fix(ssl): handle missing CA certificate in SSL regeneration job
This commit is contained in:
parent
cef4596011
commit
7b8e2e7175
1 changed files with 5 additions and 0 deletions
|
|
@ -49,6 +49,11 @@ public function handle()
|
|||
->where('is_ca_certificate', true)
|
||||
->first();
|
||||
|
||||
if (! $caCert) {
|
||||
Log::error("No CA certificate found for server_id: {$certificate->server_id}");
|
||||
|
||||
return;
|
||||
}
|
||||
SSLHelper::generateSslCertificate(
|
||||
commonName: $certificate->common_name,
|
||||
subjectAlternativeNames: $certificate->subject_alternative_names,
|
||||
|
|
|
|||
Loading…
Reference in a new issue