mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
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:
@@ -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']
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user