IPsec: Fix extra whitespace in exported certificates

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>
This commit is contained in:
Michael Tremer
2021-08-24 15:50:46 +00:00
committed by Arne Fitzenreiter
parent a41e24d414
commit 6688e0bc7a

View 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);
}
###