fix(migration): store subjectAlternativeNames as a json array in the db

This commit is contained in:
peaklabs-dev
2025-02-03 22:35:00 +01:00
parent f871c1067b
commit fba95c3729
3 changed files with 3 additions and 2 deletions

View File

@@ -107,7 +107,7 @@ class SslHelper
'valid_until' => CarbonImmutable::now()->addDays($validityDays),
'is_ca_certificate' => $isCaCertificate,
'common_name' => $commonName,
'subject_alternative_names' => implode(', ', array_merge(["DNS:$commonName"], $subjectAlternativeNames)),
'subject_alternative_names' => $subjectAlternativeNames,
]);
} catch (\Throwable $e) {
throw new \RuntimeException('SSL Certificate generation failed: '.$e->getMessage(), 0, $e);