Do not create any DSA keys any more

DSA is considered weak cryptography

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2015-08-20 23:20:44 +01:00
parent cec620efdf
commit 04da8aa70a
3 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
etc/system-release
etc/issue
etc/rc.d/init.d/sshd
var/ipfire/langs

View File

@@ -45,6 +45,9 @@ extract_files
sed -i /etc/ssh/sshd_config \
-e 's/^#\?PermitRootLogin .*$$/PermitRootLogin yes/'
# Move away old and unsupported keys
mv -f /etc/ssh/ssh_host_dsa_key{,.old}
# Start services
/etc/init.d/dnsmasq start
/etc/init.d/sshd start

View File

@@ -18,7 +18,7 @@ case "$1" in
evaluate_retval
fi
for algo in rsa dsa ecdsa ed25519; do
for algo in rsa ecdsa ed25519; do
keyfile="/etc/ssh/ssh_host_${algo}_key"
# If the key already exists, there is nothing to do.