]> git.ipfire.org Git - people/jschlag/ipfire-2.x.git/commitdiff
Do not create any DSA keys any more
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 20 Aug 2015 22:20:44 +0000 (23:20 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 20 Aug 2015 22:22:08 +0000 (23:22 +0100)
DSA is considered weak cryptography

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/94/filelists/files
config/rootfiles/core/94/update.sh
src/initscripts/init.d/sshd

index 168c7d188b168dbae0b0001b8a01b6abe242c563..2dce10a105a5c59712c270783f2f2db901a68fb9 100644 (file)
@@ -1,3 +1,4 @@
 etc/system-release
 etc/issue
+etc/rc.d/init.d/sshd
 var/ipfire/langs
index d92ef916ba8fc058e2d3862469a1334009c85a6e..0d77743e87229b65ddf9b3c154cefb4c44f52d71 100644 (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
index 0ed86616534c23d4bffcf1bae1e4c3b9b7986533..7533184f062fa694e6846a19c4617afee2c50aed 100644 (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.