aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2013-04-02 03:01:04 -0700
committerErmal Luçi <eri@pfsense.org>2013-04-02 03:01:04 -0700
commitde0bb30fafac1953d56b758a9fb7a54a8c55853c (patch)
treed717a6a64b33c220978943738f4577da6b8c83b5
parentfdb500d70615697c453b18d5cae0ff78dfd31c70 (diff)
parent4bd0f6d89188af32e392a668798f9ade286935f1 (diff)
downloadpfsense-packages-de0bb30fafac1953d56b758a9fb7a54a8c55853c.tar.gz
pfsense-packages-de0bb30fafac1953d56b758a9fb7a54a8c55853c.tar.bz2
pfsense-packages-de0bb30fafac1953d56b758a9fb7a54a8c55853c.zip
Merge pull request #419 from mmack/patch-1
Add newline at cert concat
-rw-r--r--config/haproxy-devel/haproxy.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/haproxy-devel/haproxy.inc b/config/haproxy-devel/haproxy.inc
index f949bf98..427b0418 100644
--- a/config/haproxy-devel/haproxy.inc
+++ b/config/haproxy-devel/haproxy.inc
@@ -524,7 +524,7 @@ function haproxy_writeconf() {
//ssl crt ./server.pem ca-file ./ca.crt verify optional crt-ignore-err all crl-file ./ca_crl.pem
$ssl_crt=" crt /var/etc/{$backend['name']}.{$backend['port']}.crt";
$cert = lookup_cert($backend['ssloffloadcert']);
- $certcontent = base64_decode($cert['crt']).base64_decode($cert['prv']);
+ $certcontent = base64_decode($cert['crt'])."\r\n".base64_decode($cert['prv']);
file_put_contents("/var/etc/{$backend['name']}.{$backend['port']}.crt", $certcontent);
unset($certcontent);
}else{