aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/vhosts/vhosts.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/vhosts/vhosts.inc b/config/vhosts/vhosts.inc
index aa602fdd..015cd5d8 100644
--- a/config/vhosts/vhosts.inc
+++ b/config/vhosts/vhosts.inc
@@ -331,7 +331,7 @@ function vhosts_sync_package_php()
if (strlen($rowhelper['certificate']) > 0 && strlen($rowhelper['privatekey']) > 0) {
$pem_file = "/var/etc/cert-vhosts-".$ipaddress."-".$port.".pem";
$fout = fopen($pem_file,"w");
- fwrite($fout, $certificate.$privatekey);
+ fwrite($fout, $certificate.PHP_EOL.$privatekey);
fclose($fout);
$tmp .= " ssl.pemfile = \"".$pem_file."\"\n";
$tmp .= " ssl.engine = \"enable\"\n";
@@ -615,7 +615,7 @@ function vhosts_sync_package_php()
$pem_file = "/var/etc/cert-vhosts-".$ipaddress."-".$port.".pem";
$fout = fopen($pem_file,"w");
//echo $certificate; //exit;
- fwrite($fout, $certificate.$privatekey);
+ fwrite($fout, $certificate.PHP_EOL.$privatekey);
fclose($fout);
$tmp .= "## ssl configuration\n";
$tmp .= "ssl.pemfile = \"".$pem_file."\"\n";