security/acme-client: fix export of ca certs for SFTP upload

export correct array element for ca certs. fixes #4477
This commit is contained in:
abrychcy 2025-01-17 23:22:10 +01:00 committed by GitHub
parent 98b20bcc82
commit 84aa445f5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -532,7 +532,7 @@ function exportCertificates(array $cert_refids): array
$item["key"] = $_tmp["prv"];
// check if a CA is linked
if (!empty((string)$cert->caref)) {
$item['ca'] = $_tmp['ca'];
$item['ca'] = $_tmp['ca']['crt'];
// combine files to export a fullchain.pem
$item["fullchain"] = $item["cert"] . $item["ca"];