From b69bf518a5a5249e15b923c60bf3e041a6fee170 Mon Sep 17 00:00:00 2001 From: Marius Burkard Date: Fri, 28 Oct 2016 17:39:53 +0200 Subject: [PATCH] - create missing bundle file for apache (thanks to MR !479 by @Niklas) --- server/plugins-available/apache2_plugin.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php index b39ef887f4..028f4faa0e 100644 --- a/server/plugins-available/apache2_plugin.inc.php +++ b/server/plugins-available/apache2_plugin.inc.php @@ -272,6 +272,7 @@ class apache2_plugin { $key_file2 = $ssl_dir.'/'.$domain.'.key.org'; $csr_file = $ssl_dir.'/'.$domain.'.csr'; $crt_file = $ssl_dir.'/'.$domain.'.crt'; + $bundle_file = $ssl_dir.'/'.$domain.'.bundle'; //* Create a SSL Certificate, but only if this is not a mirror server. if($data['new']['ssl_action'] == 'create' && $conf['mirror_server_id'] == 0) { @@ -416,7 +417,10 @@ class apache2_plugin { if(version_compare($app->system->getapacheversion(true), '2.4.8', '>=')) { $tmp_data = ''; if(trim($data["new"]["ssl_cert"]) != '') $tmp_data .= $data["new"]["ssl_cert"] . "\n"; - if(trim($data["new"]["ssl_bundle"]) != '') $tmp_data .= $data["new"]["ssl_bundle"]; + if(trim($data["new"]["ssl_bundle"]) != '') { + $tmp_data .= $data["new"]["ssl_bundle"]; + $app->system->file_put_contents($bundle_file, $data["new"]["ssl_bundle"]); + } if(trim($tmp_data) != '') $app->system->file_put_contents($crt_file, $tmp_data); } else { if(trim($data["new"]["ssl_cert"]) != '') $app->system->file_put_contents($crt_file, $data["new"]["ssl_cert"]); -- GitLab