From: Arkadiusz Miƛkiewicz Date: Mon, 28 May 2001 19:44:23 +0000 (+0000) Subject: generate RSA key, too X-Git-Tag: openssh-2_9p1-4~1 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=16b63e6a2fe3f6b71720f7db00917a3d37c7d6f4;p=packages%2Fopenssh.git generate RSA key, too Changed files: openssh.spec -> 1.80 --- diff --git a/openssh.spec b/openssh.spec index 2fa56b3..933e840 100644 --- a/openssh.spec +++ b/openssh.spec @@ -217,11 +217,16 @@ rm -rf $RPM_BUILD_ROOT %post server /sbin/chkconfig --add sshd if [ ! -f %{_sysconfdir}/ssh_host_key -o ! -s %{_sysconfdir}/ssh_host_key ]; then - %{_bindir}/ssh-keygen -b 1024 -f %{_sysconfdir}/ssh_host_key -N '' 1>&2 + %{_bindir}/ssh-keygen -t rsa1 -f %{_sysconfdir}/ssh_host_key -N '' 1>&2 chmod 600 %{_sysconfdir}/ssh_host_key fi +if [ ! -f %{_sysconfdir}/ssh_host_rsa_key -o ! -s %{_sysconfdir}/ssh_host_rsa_key ]; then + %{_bindir}/ssh-keygen -t rsa -f %{_sysconfdir}/ssh_host_rsa_key -N '' 1>&2 + chmod 600 %{_sysconfdir}/ssh_host_rsa_key +fi + if [ ! -f %{_sysconfdir}/ssh_host_dsa_key -o ! -s %{_sysconfdir}/ssh_host_dsa_key ]; then - %{_bindir}/ssh-keygen -d -f %{_sysconfdir}/ssh_host_dsa_key -N '' 1>&2 + %{_bindir}/ssh-keygen -t dsa -f %{_sysconfdir}/ssh_host_dsa_key -N '' 1>&2 chmod 600 %{_sysconfdir}/ssh_host_dsa_key fi if [ -f /var/lock/subsys/sshd ]; then