- Generate DSA host keys during "make key" or RPM installs

This commit is contained in:
Damien Miller 2000-05-08 00:05:31 +10:00
parent a3f2a02bc3
commit 58e579bcd9
4 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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..."