From 58e579bcd987397aeeb5f0a7935ffdfa67125f37 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 8 May 2000 00:05:31 +1000 Subject: - Generate DSA host keys during "make key" or RPM installs --- ChangeLog | 4 ++++ Makefile.in | 1 + contrib/redhat/openssh.spec | 3 +++ contrib/suse/openssh.spec | 4 ++++ 4 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index c6e3548a8..6c8466107 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +20000508 + - Makefile and RPM spec fixes + - Generate DSA host keys during "make key" or RPM installs + 20000507 - Remove references to SSLeay. - Big OpenBSD CVS update diff --git a/Makefile.in b/Makefile.in index de2fbd269..8d2c71b95 100644 --- a/Makefile.in +++ b/Makefile.in @@ -133,6 +133,7 @@ install: manpages $(TARGETS) host-key: ssh-keygen ./ssh-keygen -b 1024 -f $(sysconfdir)/ssh_host_key -N '' + ./ssh-keygen -d -f $(sysconfdir)/ssh_host_dsa_key -N '' uninstallall: uninstall -rm -f $(DESTDIR)$(sysconfdir)/ssh_config diff --git a/contrib/redhat/openssh.spec b/contrib/redhat/openssh.spec index be76c9650..96e972cf1 100644 --- a/contrib/redhat/openssh.spec +++ b/contrib/redhat/openssh.spec @@ -190,6 +190,9 @@ rm -rf $RPM_BUILD_ROOT if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2 fi +if [ ! -f /etc/ssh/ssh_host_dsa_key -o ! -s /etc/ssh/ssh_host_dsa_key ]; then + /usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N '' >&2 +fi if test -r /var/run/sshd.pid then /etc/rc.d/init.d/sshd restart >&2 diff --git a/contrib/suse/openssh.spec b/contrib/suse/openssh.spec index 7d5d087a8..0f63ef658 100644 --- a/contrib/suse/openssh.spec +++ b/contrib/suse/openssh.spec @@ -197,6 +197,10 @@ if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then echo "Generating SSH host key..." /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2 fi +if [ ! -f /etc/ssh/ssh_host_dsa_key -o ! -s /etc/ssh/ssh_host_dsa_key ]; then + echo "Generating SSH DSA host key..." + /usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N '' >&2 +fi if test -r /var/run/sshd.pid then echo "Restarting the running SSH daemon..." -- cgit v1.2.3