Merge pull request #4479 from abrychcy/patch-acme-sftp-upload

security/acme-client: fix export of ca certs for SFTP upload automation
This commit is contained in:
Frank Wall
2025-01-19 11:55:10 +01:00
committed by GitHub
@@ -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"];