fix(ssl): handle missing CA certificate in SSL regeneration job
This commit is contained in:
@@ -49,6 +49,11 @@ class RegenerateSslCertJob implements ShouldQueue
|
|||||||
->where('is_ca_certificate', true)
|
->where('is_ca_certificate', true)
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
|
if (! $caCert) {
|
||||||
|
Log::error("No CA certificate found for server_id: {$certificate->server_id}");
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
SSLHelper::generateSslCertificate(
|
SSLHelper::generateSslCertificate(
|
||||||
commonName: $certificate->common_name,
|
commonName: $certificate->common_name,
|
||||||
subjectAlternativeNames: $certificate->subject_alternative_names,
|
subjectAlternativeNames: $certificate->subject_alternative_names,
|
||||||
|
Reference in New Issue
Block a user