From patchwork Thu Oct 12 04:46:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_M=C3=BCller?= X-Patchwork-Id: 1470 Return-Path: Received: from mail01.ipfire.org (unknown [172.28.1.200]) by web02.ipfire.org (Postfix) with ESMTP id 6F43C60BCF for ; Wed, 11 Oct 2017 19:46:46 +0200 (CEST) Received: from mail01.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id D6BE72A1E; Wed, 11 Oct 2017 19:46:45 +0200 (CEST) Received: from mx.link38.eu (mx.link38.eu [188.68.43.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx.link38.eu", Issuer "Let's Encrypt Authority X3" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 1DAB32A1E for ; Wed, 11 Oct 2017 19:46:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mx.link38.eu (Postfix) with ESMTP id D25CD41549 for ; Wed, 11 Oct 2017 19:46:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mx.link38.eu Received: from mx-fra.brokers.link38.eu (mx-fra.brokers.link38.eu [10.141.75.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx.link38.eu (Postfix) with ESMTPS for ; Wed, 11 Oct 2017 19:46:35 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx-fra.brokers.link38.eu (Postfix) with ESMTPSA id 4591F9F38A for ; Wed, 11 Oct 2017 19:46:35 +0200 (CEST) Date: Wed, 11 Oct 2017 19:46:35 +0200 From: Peter =?utf-8?q?M=C3=BCller?= To: "development@lists.ipfire.org" Subject: [PATCH] generate ECDSA key on existing installations Message-ID: <20171011194635.66f9b18a.peter.mueller@link38.eu> Organization: Link38 MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" This is required since Apache crashes if any of the key/certificate files does not exist. Signed-off-by: Peter Müller --- config/rootfiles/core/115/update.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/rootfiles/core/115/update.sh b/config/rootfiles/core/115/update.sh index 4b30cd8b6..941f8df87 100644 --- a/config/rootfiles/core/115/update.sh +++ b/config/rootfiles/core/115/update.sh @@ -35,6 +35,7 @@ done openvpnctrl -k openvpnctrl -kn2n + # Extract files extract_files @@ -48,6 +49,9 @@ ldconfig # Update Language cache /usr/local/bin/update-lang-cache +# generate ECDSA key on existing installations to prevent Apache from crashing +/usr/local/bin/httpscert + # Start services /etc/rc.d/init.d/apache2 restart openvpnctrl -s