diff options
author | Juergen Daubert <jue@jue.li> | 2015-01-18 15:14:23 +0100 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2015-01-18 15:14:23 +0100 |
commit | 50298703182dabf0be6033e00a2ffc5bb66a3464 (patch) | |
tree | 7eda038383217c696b6778296a42c1b0adb52f98 /dropbear | |
parent | cab72881ddb14745b6b26e86f809efa2677aec2f (diff) | |
download | opt-50298703182dabf0be6033e00a2ffc5bb66a3464.tar.gz opt-50298703182dabf0be6033e00a2ffc5bb66a3464.tar.xz |
dropbear: create ecdsa host key
Diffstat (limited to 'dropbear')
-rw-r--r-- | dropbear/.md5sum | 2 | ||||
-rw-r--r-- | dropbear/Pkgfile | 2 | ||||
-rw-r--r-- | dropbear/dropbear | 10 |
3 files changed, 11 insertions, 3 deletions
diff --git a/dropbear/.md5sum b/dropbear/.md5sum index a050fbb2c..17996c0b6 100644 --- a/dropbear/.md5sum +++ b/dropbear/.md5sum @@ -1,2 +1,2 @@ -e499ac93e2ce3c14c3806c4f74e74371 dropbear +0de16660a2ab1bbacefa51e871ea7a6b dropbear c21a01111aa5015db038c6efdb85717d dropbear-2014.66.tar.bz2 diff --git a/dropbear/Pkgfile b/dropbear/Pkgfile index b3c66dabb..bcb8df5ad 100644 --- a/dropbear/Pkgfile +++ b/dropbear/Pkgfile @@ -5,7 +5,7 @@ name=dropbear version=2014.66 -release=1 +release=2 source=(http://matt.ucc.asn.au/$name/releases/$name-$version.tar.bz2 \ $name) diff --git a/dropbear/dropbear b/dropbear/dropbear index 4fa2a90d2..118c49f59 100644 --- a/dropbear/dropbear +++ b/dropbear/dropbear @@ -8,6 +8,7 @@ KEYG=/usr/bin/dropbearkey RSA=/etc/dropbear/dropbear_rsa_host_key DSS=/etc/dropbear/dropbear_dss_host_key +ECDSA=/etc/dropbear/dropbear_ecdsa_host_key case $1 in start) @@ -15,7 +16,7 @@ start) if [ -f /etc/ssh/ssh_host_rsa_key ]; then $CONV openssh dropbear /etc/ssh/ssh_host_rsa_key $RSA else - $KEYG -t rsa -f $RSA + $KEYG -t rsa -s 4096 -f $RSA fi fi if [ ! -f $DSS ]; then @@ -25,6 +26,13 @@ start) $KEYG -t dss -f $DSS fi fi + if [ ! -f $ECDSA ]; then + if [ -f /etc/ssh/ssh_host_ecdsa_key ]; then + $CONV openssh dropbear /etc/ssh/ssh_host_ecdsa_key $ECDSA + else + $KEYG -t ecdsa -s 521 -f $ECDSA + fi + fi /usr/sbin/dropbear ;; stop) |