From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 26 Nov 2021 15:35:21 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mqcJt-0004AB-5s for lore@lore.pengutronix.de; Fri, 26 Nov 2021 15:35:21 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mqcJs-0005q4-Du; Fri, 26 Nov 2021 15:35:20 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mqcJd-00058L-U1; Fri, 26 Nov 2021 15:35:05 +0100 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1mqcJd-001Bus-R3; Fri, 26 Nov 2021 15:35:05 +0100 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1mqcJc-0053nd-GK; Fri, 26 Nov 2021 15:35:04 +0100 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Fri, 26 Nov 2021 15:35:04 +0100 Message-Id: <20211126143504.1206012-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211105154734.19983-7-ada@thorsis.com> References: <20211105154734.19983-7-ada@thorsis.com> MIME-Version: 1.0 Subject: Re: [ptxdist] [APPLIED] dropbear: Support ecdsa keys in rc-once and init X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Alexander Dahl Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as ea8fb9e68ff16f7537f89217201fbea63ef347c9. Michael [sent from post-receive hook] On Fri, 26 Nov 2021 15:35:04 +0100, Alexander Dahl wrote: > With 54afea33423c ("dropbear: Added Elliptic Curve Cryptography > options.") an option was added to built with ecdsa host key support, but > scripts where not adapted back then. > > Signed-off-by: Alexander Dahl > Message-Id: <20211105154734.19983-7-ada@thorsis.com> > Signed-off-by: Michael Olbrich > > diff --git a/projectroot/etc/init.d/dropbear b/projectroot/etc/init.d/dropbear > index 4dda9aaf7d64..2039340b2fbd 100644 > --- a/projectroot/etc/init.d/dropbear > +++ b/projectroot/etc/init.d/dropbear > @@ -22,6 +22,9 @@ dropbear_start() { > rsa) > test -f "$DROPBEAR_RSAKEY" && KEY_ARGS="$KEY_ARGS -r $DROPBEAR_RSAKEY" > ;; > + ecdsa) > + test -f "$DROPBEAR_ECDSAKEY" && KEY_ARGS="$KEY_ARGS -r $DROPBEAR_ECDSAKEY" > + ;; > *) > echo "Key type '$keytype' not supported" > ;; > diff --git a/projectroot/etc/rc.once.d/dropbear b/projectroot/etc/rc.once.d/dropbear > index 0735fed38818..b1c40fdbbe5c 100644 > --- a/projectroot/etc/rc.once.d/dropbear > +++ b/projectroot/etc/rc.once.d/dropbear > @@ -30,6 +30,9 @@ gen_keys() { > rsa) > gen_key rsa "$DROPBEAR_RSAKEY" > ;; > + ecdsa) > + gen_key ecdsa "$DROPBEAR_ECDSAKEY" > + ;; > *) > echo "Key type '$keytype' not supported" > ;; > diff --git a/projectroot/usr/lib/init/dropbear.sh b/projectroot/usr/lib/init/dropbear.sh > index f4a083b8cc01..12fd6e5ce3f6 100644 > --- a/projectroot/usr/lib/init/dropbear.sh > +++ b/projectroot/usr/lib/init/dropbear.sh > @@ -1,4 +1,5 @@ > #!/bin/sh > > DROPBEAR_RSAKEY='@KEYDIR@/dropbear_rsa_host_key' > +DROPBEAR_ECDSAKEY='@KEYDIR@/dropbear_ecdsa_host_key' > DROPBEAR_KEYTYPES='@KEYTYPES@' _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de