diff options
author | Tobias Wolter <towo@towo.eu> | 2014-10-10 13:51:02 +0200 |
---|---|---|
committer | Tobias Wolter <towo@towo.eu> | 2014-10-10 13:51:02 +0200 |
commit | 44a5f8ab12068625d6daa58cc929f35925c9a2a7 (patch) | |
tree | d8389beb03dac645f3ee7cd4f4e06d5d8faab747 /config/vhosts/vhosts.inc | |
parent | 9a17909ebbbffcf879d169b680fb6510dd72e44e (diff) | |
download | pfsense-packages-44a5f8ab12068625d6daa58cc929f35925c9a2a7.tar.gz pfsense-packages-44a5f8ab12068625d6daa58cc929f35925c9a2a7.tar.bz2 pfsense-packages-44a5f8ab12068625d6daa58cc929f35925c9a2a7.zip |
Fix missing newline in certificate files
Diffstat (limited to 'config/vhosts/vhosts.inc')
-rw-r--r-- | config/vhosts/vhosts.inc | 4 |
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"; |