Fix wrong stream server ca filename (#2240)

If a CA Certificate for an stream server was selected the CA was saved with the last hostname set from the forearch loop of the HTTP Servers in the block above!
This commit is contained in:
Ingo Theiss
2021-04-11 13:07:09 +02:00
committed by GitHub
parent 69a9a1d454
commit efddc02352
@@ -154,7 +154,7 @@ if (isset($nginx['stream_server'])) {
$ca = find_ca($caref);
if (isset($ca)) {
export_pem_file(
KEY_DIRECTORY . $hostname . '_ca.pem',
KEY_DIRECTORY . $stream_server['@attributes']['uuid'] . '_ca.pem',
$ca['crt']
);
}