dropbear: create ecdsa host key
This commit is contained in:
parent
cab72881dd
commit
5029870318
@ -1,2 +1,2 @@
|
|||||||
e499ac93e2ce3c14c3806c4f74e74371 dropbear
|
0de16660a2ab1bbacefa51e871ea7a6b dropbear
|
||||||
c21a01111aa5015db038c6efdb85717d dropbear-2014.66.tar.bz2
|
c21a01111aa5015db038c6efdb85717d dropbear-2014.66.tar.bz2
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
name=dropbear
|
name=dropbear
|
||||||
version=2014.66
|
version=2014.66
|
||||||
release=1
|
release=2
|
||||||
source=(http://matt.ucc.asn.au/$name/releases/$name-$version.tar.bz2 \
|
source=(http://matt.ucc.asn.au/$name/releases/$name-$version.tar.bz2 \
|
||||||
$name)
|
$name)
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@ KEYG=/usr/bin/dropbearkey
|
|||||||
|
|
||||||
RSA=/etc/dropbear/dropbear_rsa_host_key
|
RSA=/etc/dropbear/dropbear_rsa_host_key
|
||||||
DSS=/etc/dropbear/dropbear_dss_host_key
|
DSS=/etc/dropbear/dropbear_dss_host_key
|
||||||
|
ECDSA=/etc/dropbear/dropbear_ecdsa_host_key
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
start)
|
start)
|
||||||
@ -15,7 +16,7 @@ start)
|
|||||||
if [ -f /etc/ssh/ssh_host_rsa_key ]; then
|
if [ -f /etc/ssh/ssh_host_rsa_key ]; then
|
||||||
$CONV openssh dropbear /etc/ssh/ssh_host_rsa_key $RSA
|
$CONV openssh dropbear /etc/ssh/ssh_host_rsa_key $RSA
|
||||||
else
|
else
|
||||||
$KEYG -t rsa -f $RSA
|
$KEYG -t rsa -s 4096 -f $RSA
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ ! -f $DSS ]; then
|
if [ ! -f $DSS ]; then
|
||||||
@ -25,6 +26,13 @@ start)
|
|||||||
$KEYG -t dss -f $DSS
|
$KEYG -t dss -f $DSS
|
||||||
fi
|
fi
|
||||||
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
|
/usr/sbin/dropbear
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user