]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
IPsec: Fix extra whitespace in exported certificates
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Aug 2021 15:50:46 +0000 (15:50 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 10 Sep 2021 16:57:06 +0000 (16:57 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Tested-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
html/cgi-bin/vpnmain.cgi

index d54b56577e417dc2fd39ab366f66167e2ea78b0c..980601ba0ab07c95904c3d599b0c972f40d59397 100644 (file)
@@ -849,7 +849,7 @@ END
                print "Content-Disposition: attachment; filename=cacert.pem\r\n\r\n";
 
                my @cert = &General::system_output("/usr/bin/openssl", "x509", "-in", "${General::swroot}/ca/cacert.pem");
-               print "@cert";
+               print join("", @cert);
                exit(0);
        }
 ###
@@ -861,7 +861,7 @@ END
                print "Content-Disposition: attachment; filename=hostcert.pem\r\n\r\n";
 
                my @cert = &General::system_output("/usr/bin/openssl", "x509", "-in", "${General::swroot}/certs/hostcert.pem");
-               print "@cert";
+               print join("", @cert);
                exit(0);
        }
 ###