From patchwork Tue Aug 24 15:50:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 4644 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4GvD9D5Vd9z3xHv for ; Tue, 24 Aug 2021 15:50:56 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4GvD9C0Sk4z36m; Tue, 24 Aug 2021 15:50:55 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4GvD9B3t4Mz2yb3; Tue, 24 Aug 2021 15:50:54 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4GvD994gVWz2xSN for ; Tue, 24 Aug 2021 15:50:53 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4GvD986cX4z170; Tue, 24 Aug 2021 15:50:52 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1629820253; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=nru42SC4ASpX7EqM8vjbObgYqfbni9V2/IfT8DuyXDE=; b=/6e2Z3qKKMJoRNkp+EzZ83vsWAdmSujiOg6Qr0SutEP/Zx2+ibWQ8q0nk2hN5MthPf+2C/ NwJx94TvT6WlCBBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1629820253; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=nru42SC4ASpX7EqM8vjbObgYqfbni9V2/IfT8DuyXDE=; b=Eky6clx/aptVY/8CvktqX+2Xa3PRxY95aP4cUEm4XnLMrfdoVmqQ3TTrrqHsBvQ+GVCajz 8kM9vbyfMHTfPmGN0kD4ixtBRM2ffrmLTsX2+2gZ+Zep4rjHrmtI0hbU9zcAiRRUc1uaoj fjrDDK1zvbficILkeM8tlHJlcezW7vXR+ORCqZAMoz33k0K4l7wiD2A77AxGsVU1koergy vdeDYzh3a2OraQFXll7+vKAyDKMGzpQrtaJ8IDMrt/I2o8dYIt2aaY+exDObC6zp4+h7iI m48x+XgV9d5PeSU2jrg18XkdqcTNGwngF90e+jhJpvbAGOgPun79U2LUqw/5/g== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 1/3] IPsec: Fix extra whitespace in exported certificates Date: Tue, 24 Aug 2021 15:50:46 +0000 Message-Id: <20210824155048.13859-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Michael Tremer Signed-off-by: Stefan Schantl Tested-by: Stefan Schantl --- html/cgi-bin/vpnmain.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi index d54b56577..980601ba0 100644 --- a/html/cgi-bin/vpnmain.cgi +++ b/html/cgi-bin/vpnmain.cgi @@ -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); } ###