From 3c6c798f370ae4af877fe3eed9728f9bb48f9bef Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 17 Dec 2013 14:52:41 +0100 Subject: add ecdsa key generation --- package/dropbear/Makefile | 2 +- package/dropbear/files/dropbear.init | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'package') diff --git a/package/dropbear/Makefile b/package/dropbear/Makefile index 5a07ea5c5..503efa1e5 100644 --- a/package/dropbear/Makefile +++ b/package/dropbear/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:= dropbear PKG_VERSION:= 2013.62 -PKG_RELEASE:= 1 +PKG_RELEASE:= 2 PKG_MD5SUM:= ca2c7932a1399cf361f795aaa3843998 PKG_DESCR:= SSH 2 server/client designed for embedded systems PKG_SECTION:= net/security diff --git a/package/dropbear/files/dropbear.init b/package/dropbear/files/dropbear.init index 11b91db49..955ae33c3 100644 --- a/package/dropbear/files/dropbear.init +++ b/package/dropbear/files/dropbear.init @@ -31,6 +31,14 @@ start) echo "dropbear: key generation exited with code $?" fi fi + if test ! -f /etc/dropbear/dropbear_ecdsa_host_key; then + # take it easy here, since above already catched the worst cases + if test -x /usr/bin/dropbearkey; then + echo "dropbear: generating SSH private key (ECDSA)" + /usr/bin/dropbearkey -f /etc/dropbear/dropbear_ecdsa_host_key -t ecdsa + echo "dropbear: key generation exited with code $?" + fi + fi /usr/sbin/dropbear $dropbear_flags ;; stop) -- cgit v1.2.3