Skip to content

Commit

Permalink
Merge pull request #9 from gea0/dss_fix
Browse files Browse the repository at this point in the history
removed dss key generation
  • Loading branch information
grazzolini authored Sep 10, 2019
2 parents da78b4c + 470a472 commit 3905a71
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions dropbear_install
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ get_fingerprint() {
display_fingerprints() {
local keyfile

for keyfile in "/etc/dropbear/dropbear_rsa_host_key" "/etc/dropbear/dropbear_dss_host_key" "/etc/dropbear/dropbear_ecdsa_host_key" ; do
for keyfile in "/etc/dropbear/dropbear_rsa_host_key" "/etc/dropbear/dropbear_ecdsa_host_key" ; do
if [ -s "${keyfile}" ] ; then
echo "$(basename "${keyfile}") : $(get_fingerprint "${keyfile}")"
fi
Expand All @@ -17,7 +17,6 @@ display_fingerprints() {

copy_openssh_keys() {
local osshrsa="/etc/ssh/ssh_host_rsa_key"
local osshdsa="/etc/ssh/ssh_host_dsa_key"
local osshecdsa="/etc/ssh/ssh_host_ecdsa_key"

local dbpre="/etc/dropbear/dropbear_"
Expand All @@ -29,11 +28,6 @@ copy_openssh_keys() {
return_code=0
fi

if [ -s "$osshdsa" ]; then
dropbearconvert openssh dropbear $osshdsa ${dbpre}dss_host_key
return_code=0
fi

if [ -s "$osshecdsa" ]; then
dropbearconvert openssh dropbear $osshecdsa ${dbpre}ecdsa_host_key
return_code=0
Expand All @@ -44,7 +38,7 @@ copy_openssh_keys() {

generate_keys() {
local keyfile keytype
for keytype in rsa dss ecdsa ; do
for keytype in rsa ecdsa ; do
keyfile="/etc/dropbear/dropbear_${keytype}_host_key"
if [ ! -s "$keyfile" ]; then
echo "Generating ${keytype} host key for dropbear ..."
Expand Down

0 comments on commit 3905a71

Please sign in to comment.